From 08e8341cd474473e2e31286800ca71689c1361ed Mon Sep 17 00:00:00 2001 From: oshaboy Date: Mon, 20 Jan 2025 02:05:50 +0200 Subject: [PATCH] Update configuration.c --- configuration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.c b/configuration.c index 4bbb7edbfb5..b38da11e259 100644 --- a/configuration.c +++ b/configuration.c @@ -6705,7 +6705,7 @@ unsigned input_config_parse_sensor( if (config_get_array(conf, s, tmp, sizeof(tmp))) { if (strcmp(tmp, "nul") != 0){ - if (*tmp>='0' && *tmp<='5'){ + if ((*tmp>='0') && (*tmp<='5')){ if (strcmp(tmp+1,"inv") == 0) return (((*tmp)-'0')*2)+1; else if (tmp[1] == '\0')