fixed r/rw attribute in rest api functions handling

This commit is contained in:
Bogdan Pilyugin 2023-08-25 16:00:52 +02:00
parent 5fc2c2fe81
commit f5f28eb209

View File

@ -468,7 +468,7 @@ esp_err_t GetConfVar(char *name, char *val, rest_var_types *tp)
esp_ip4addr_ntoa((const esp_ip4_addr_t*) V->ref, val, 16); esp_ip4addr_ntoa((const esp_ip4_addr_t*) V->ref, val, 16);
break; break;
case VAR_FUNCT: case VAR_FUNCT:
((void (*)(char*, int)) (V->ref))(val, 1); ((void (*)(char*, int)) (V->ref))(val, 0);
break; break;
case VAR_ERROR: case VAR_ERROR:
break; break;