Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: LinkNode_SimpleChatwithSerial
Fork of BLE_API by
Diff: ble/UUID.h
- Revision:
- 1037:ec64da75c9ee
- Parent:
- 1035:d8ba3cb5a39a
- Child:
- 1038:ebf9746bff7d
diff -r 7af23cdcfcac -r ec64da75c9ee ble/UUID.h
--- a/ble/UUID.h Thu Dec 10 09:15:04 2015 +0000
+++ b/ble/UUID.h Thu Dec 10 09:15:04 2015 +0000
@@ -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';
