Skip to content

Commit

Permalink
tm_year check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorYbema committed Aug 30, 2024
1 parent f2a171b commit b24fab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HeishaMon/HeishaMon.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ void timer_cb(int nr) {
case -6: {
time_t now = time(NULL);
struct tm *tm_struct = localtime(&now);
if(tm_struct->tm_year == 1970) {
if(tm_struct->tm_year == 70) {
ntpReload(&heishamonSettings);
logprintln_P(F("Syncing with ntp servers, check again in 5 minutes"));
timerqueue_insert(300, 0, -5);
Expand Down

0 comments on commit b24fab5

Please sign in to comment.