framework/st_things: Fix crash issue when things log enabled
org: THINGS_LOG_D(THINGS_ERROR, TAG, "cloud data parsing error");
`THINGS_ERROR` is redundant, it leads to things_log print tag string
from address: 3 (value of THINGS_ERROR).
Without this apply, crash occur on ESP32 boards.
@@ -1741,7 +1741,7 @@ static int parse_things_info_json(const char *filename)
}
if (parse_things_cloud_json(g_things_cloud_file_path) == 0) {
- THINGS_LOG_D(THINGS_ERROR, TAG, "cloud data parsing error");
+ THINGS_LOG_D(TAG, "cloud data parsing error");
}
ret = 1;
