Skip to content

Commit

Permalink
REST errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dzurikmiroslav committed Aug 27, 2024
1 parent d35aa0b commit fd700d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/protocols/src/http_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ cJSON* http_json_get_state(void)

uint32_t error = evse_get_error();
if (error == 0) {
cJSON_AddNullToObject(json, "errors_json");
cJSON_AddNullToObject(json, "errors");
} else {
cJSON* errors_json = cJSON_CreateArray();
if (error & EVSE_ERR_PILOT_FAULT_BIT) {
Expand Down

0 comments on commit fd700d0

Please sign in to comment.