Fixed library
Some checks failed
Test compiling project / test (push) Has been cancelled

This commit is contained in:
2025-03-20 21:08:30 +01:00
parent 76e182935b
commit 6364becbe2
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ lib_deps =
fetchOTA fetchOTA
INA233 INA233
ESP32Ping ESP32Ping
https://github.com/x821938/elog https://github.com/tobimai/elog.git#fix-syslog
board_build.partitions = default.csv board_build.partitions = default.csv
upload_protocol = espota upload_protocol = espota
upload_port = 192.168.5.205 upload_port = 192.168.5.205
@@ -39,7 +39,7 @@ lib_deps =
bblanchon/ArduinoJson@^6.21.3 bblanchon/ArduinoJson@^6.21.3
jsc/ArduinoLog jsc/ArduinoLog
ESP32Ping ESP32Ping
https://github.com/x821938/elog https://github.com/tobimai/elog.git#fix-syslog
board_build.partitions = default.csv board_build.partitions = default.csv
upload_protocol = espota upload_protocol = espota
upload_port = 192.168.4.18 upload_port = 192.168.4.18

View File

@@ -223,8 +223,8 @@ void setup()
} }
logger.log(0, DEBUG, "Getting time now"); logger.log(0, DEBUG, "Getting time now");
// Configure time with a GMT offset and daylight offset in seconds. // Configure time to UTC
configTime(3600, 0, "pool.ntp.org"); configTime(0, 0, "pool.ntp.org");
// Wait until a valid time is obtained (time > 8 hours in seconds) // Wait until a valid time is obtained (time > 8 hours in seconds)
time_t now = time(NULL); time_t now = time(NULL);