Skip to content

Commit

Permalink
update example time_DS3231
Browse files Browse the repository at this point in the history
  • Loading branch information
hasenradball committed Nov 25, 2024
1 parent f5614fb commit 8058944
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/time_DS3231_RTC/time_DS3231_RTC.ino
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ void setup() {
// set to 24h
Clock.setClockMode(false);

// clock has actual time then dicconnect Wifi
// to prevent from synchronizing
wifi.Wifi_Disconnect();
// clock has actual time, then dicconnect Wifi
// and switch wifi off to prevent from synchronizing
if (wifi.Wifi_Disconnect()){
Serial.println("\nWifi disconnected");
wifi.Wifi_Stop();
}

while(uhr.getSecond()) {
yield();
}
Expand Down

0 comments on commit 8058944

Please sign in to comment.