summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index daf9471def..b6b0a79b06 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -1083,7 +1083,7 @@ void setvol(void)
1083 1083
1084static int hex2dec(int c) 1084static int hex2dec(int c)
1085{ 1085{
1086 return (((c) >= '0' && ((c) <= '9')) ? (toupper(c)) - '0' : 1086 return (((c) >= '0' && ((c) <= '9')) ? (c) - '0' :
1087 (toupper(c)) - 'A' + 10); 1087 (toupper(c)) - 'A' + 10);
1088} 1088}
1089 1089