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 39f17be..ed69861 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -920,7 +920,7 @@ bool parse_color(char *text, int *value)
#endif
#if LCD_DEPTH == 2 || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH == 2)
- if (!is0123(*text))
+ if (text[1] != '\0' || !is0123(*text))
return false;
*value = *text - '0';
#endif