add comment header for UUID::char2int

master
Rohit Grover 2015-12-07 15:30:35 +00:00
parent aac3181548
commit 9c648dc3c6
1 changed files with 5 additions and 0 deletions

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';