use internal seconds since reset only when wifi not enabled

This commit is contained in:
theFeiter 2022-07-10 13:06:03 +02:00
parent 59196b7829
commit 3854593bf7

View File

@ -145,7 +145,7 @@ void loop() {
timeClient.update(); //update internal clock if possible
#endif
#ifdef USE_SD_LOG
#ifndef USE_WIFI
unsigned long current_millis = millis();
if(current_millis-last_millis >= 1000){
seconds_since_reset+=(current_millis-last_millis)/1000;