diff --git a/src/main.cpp b/src/main.cpp index ba255fe..4ad0d14 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -817,9 +817,9 @@ void lcd_refresh() void lcd_top_bar_update() { char time_buffer[15]; - //rtctime_t time = ESPMega_getTime(); - //sprintf(time_buffer, "%02d:%02d",time.hours,time.minutes); - //panel.writeStr("time.txt", time_buffer); + rtctime_t time = ESPMega_getTime(); + sprintf(time_buffer, "%02d:%02d",time.hours,time.minutes); + panel.writeStr("time.txt", time_buffer); panel.writeNum("server.pic", standalone ? 4 : 5); panel.writeNum("lan.pic", ETH.linkUp() ? 3 : 2); } @@ -976,7 +976,7 @@ void set_mqtt_server(String address) void eeprom_ip_update(uint16_t rom_address, uint8_t byte1, uint8_t byte2, uint8_t byte3, uint8_t byte4) { uint8_t addressblock[4] = {byte1, byte2, byte3, byte4}; - ESPMega_EEPROM.writeBlock(rom_address, addressblock, 4); + ESPMega_EEPROM.writeBlockVerify(rom_address, addressblock, 4); } IPAddress eeprom_ip_retrieve(uint16_t rom_address) {