From 893a7e92034b5a32cb5b9e118123d9b8e19ef7a0 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sun, 17 Sep 2023 00:06:00 +0700 Subject: [PATCH] pre-fram --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {