fixed variable write return error not a string

This commit is contained in:
Bogdan Pilyugin 2023-10-27 14:49:00 +02:00
parent 6ee55e363a
commit 0521b8daff

View File

@ -94,7 +94,11 @@ static sys_error_code PayloadDefaultTypeHandler(data_message_t *MSG)
if (res == ESP_OK)
GetConfVar(VarName, VarValue, &tp);
else
{
strcpy(VarValue, esp_err_to_name(res));
tp = VAR_ERROR;
}
}
else
{ //Read variables