From 4e6f673c032420876335e55adf80569bd2f459d7 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Thu, 31 Aug 2017 21:14:18 -0400 Subject: [PATCH] Fix hex conversion for digits > 9. --- ion/src/device/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ion/src/device/device.cpp b/ion/src/device/device.cpp index 99b5e4e4d..f5e4b15a5 100644 --- a/ion/src/device/device.cpp +++ b/ion/src/device/device.cpp @@ -67,7 +67,7 @@ void Ion::reset() { static inline char hex(uint8_t d) { if (d > 9) { - return 'A'+d; + return 'A'+d-10; } return '0'+d; }