fix: hex2char() returning wrong char for 0xa..0xf (#3302)

This commit is contained in:
Michael
2023-03-05 12:27:29 +10:00
committed by GitHub
parent b8220e5be4
commit b4e13474df
+1 -1
View File
@@ -29,7 +29,7 @@ const char s_charTab[] = "_-.,";
char hex2zchar(uint8_t hex) { return (hex >= 10 ? hex - 9 : 27 + hex); }
char hex2char(uint8_t hex) { return (hex >= 10 ? hex - 9 + 'A' : hex + '0'); }
char hex2char(uint8_t hex) { return (hex >= 10 ? hex - 10 + 'A' : hex + '0'); }
char zchar2char(int8_t idx)
{