mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
use internal seconds since reset only when wifi not enabled
This commit is contained in:
parent
59196b7829
commit
3854593bf7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user