no read after write for type VAR_FUNCT, where needed it mast be done
manually
This commit is contained in:
parent
0521b8daff
commit
51213d819c
|
|
@ -91,6 +91,8 @@ static sys_error_code PayloadDefaultTypeHandler(data_message_t *MSG)
|
||||||
if (MSG->parsedData.msgType == DATA_MESSAGE_TYPE_COMMAND)
|
if (MSG->parsedData.msgType == DATA_MESSAGE_TYPE_COMMAND)
|
||||||
{ //Write variables
|
{ //Write variables
|
||||||
res = SetConfVar(VarName, VarValue, &tp);
|
res = SetConfVar(VarName, VarValue, &tp);
|
||||||
|
if (tp != VAR_FUNCT)
|
||||||
|
{
|
||||||
if (res == ESP_OK)
|
if (res == ESP_OK)
|
||||||
GetConfVar(VarName, VarValue, &tp);
|
GetConfVar(VarName, VarValue, &tp);
|
||||||
else
|
else
|
||||||
|
|
@ -98,6 +100,7 @@ static sys_error_code PayloadDefaultTypeHandler(data_message_t *MSG)
|
||||||
strcpy(VarValue, esp_err_to_name(res));
|
strcpy(VarValue, esp_err_to_name(res));
|
||||||
tp = VAR_ERROR;
|
tp = VAR_ERROR;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user