From 2a0c884b2af3a1e7582d775cd660e40d896337e6 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 21 Feb 2019 18:23:18 +0100 Subject: [PATCH] Revert --- radio/src/strhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/strhelpers.cpp b/radio/src/strhelpers.cpp index e0e047376..7ddb1ce8b 100644 --- a/radio/src/strhelpers.cpp +++ b/radio/src/strhelpers.cpp @@ -52,7 +52,7 @@ int8_t char2zchar(char c) #endif if (c >= 'a') return 'a' - c - 1; if (c >= 'A') return c - 'A' + 1; - if (c >= '0') return c - '0' + 27; + if (c >= '0') return -(c - '0' + 27); if (c == '-') return 38; if (c == '.') return 39; if (c == ',') return 40;