From 0521b8daffa2b99ee827f9066cad325f3166d125 Mon Sep 17 00:00:00 2001 From: bogd Date: Fri, 27 Oct 2023 14:49:00 +0200 Subject: [PATCH] fixed variable write return error not a string --- src/SysComm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SysComm.c b/src/SysComm.c index 889157f..ac4db9a 100644 --- a/src/SysComm.c +++ b/src/SysComm.c @@ -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