diff --git a/firmware/timing_control.ino b/firmware/timing_control.ino index 4198037..f14c3d2 100644 --- a/firmware/timing_control.ino +++ b/firmware/timing_control.ino @@ -387,6 +387,8 @@ String tc_getJsonData() return output; } +//********************************// + tc_jsonDataBlockToEEPROM(String json_data_string) { StaticJsonDocument<512> doc; @@ -396,8 +398,8 @@ tc_jsonDataBlockToEEPROM(String json_data_string) for (uint8_t i = 0; i < LENGTH_OF_TIMER_DATA_BLOCK; i++) { JsonObject obj = doc[i]; - tc_data[i].hh = obj["hour"]; - tc_data[i].mm = obj["min"]; + tc_data[i].hh = obj["hour"]; + tc_data[i].mm = obj["min"]; tc_data[i].ch1 = obj["ch1"]; tc_data[i].ch2 = obj["ch2"]; tc_data[i].ch3 = obj["ch3"];