Fixing #59 and unnecessary jack insertion messages-release

This commit is contained in:
Sebastien
2020-11-21 09:26:56 -05:00
parent 2687023b6f
commit 2d573da503
5 changed files with 5 additions and 13 deletions

View File

@@ -531,7 +531,9 @@ cJSON * add_gpio_for_name(cJSON * list,const char * nvs_entry,const char * name,
int gpioNum=0;
if ((p = strcasestr(nvs_entry, name)) != NULL) {
gpioNum = atoi(strchr(p, '=') + 1);
cJSON_AddItemToArray(llist,get_gpio_entry(name,prefix,gpioNum,fixed));
if(gpioNum>=0){
cJSON_AddItemToArray(llist,get_gpio_entry(name,prefix,gpioNum,fixed));
}
}
return llist;
}