add comment header for UUID::char2int

This commit is contained in:
Rohit Grover 2015-12-07 15:30:35 +00:00
parent aac3181548
commit 9c648dc3c6

View file

@ -22,6 +22,11 @@
#include "blecommon.h"
/**
* A trivial converter for single hexadecimal character to unsigned-int.
* @param c hexadecimal character.
* @return the corresponding value as unsigned int.
*/
static uint8_t char2int(char c) {
if ((c >= '0') && (c <= '9')) {
return c - '0';