Skip to content

Commit

Permalink
Update configuration.c
Browse files Browse the repository at this point in the history
  • Loading branch information
oshaboy committed Jan 20, 2025
1 parent 20e3839 commit 08e8341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 08e8341

Please sign in to comment.