diff options
-rw-r--r-- | firmware/backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index 1e8ef3d3ab..edf8ff3744 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c | |||
@@ -128,7 +128,7 @@ int backlight_get_timeout(void) | |||
128 | 128 | ||
129 | void backlight_set_timeout(int index) | 129 | void backlight_set_timeout(int index) |
130 | { | 130 | { |
131 | if(index >= sizeof(backlight_timeout_value) || index < 0) | 131 | if((unsigned)index >= sizeof(backlight_timeout_value)) |
132 | /* if given a weird value, use 0 */ | 132 | /* if given a weird value, use 0 */ |
133 | index=0; | 133 | index=0; |
134 | backlight_timeout = index; /* index in the backlight_timeout_value table */ | 134 | backlight_timeout = index; /* index in the backlight_timeout_value table */ |