Version 1.4.3J.

Moved code to fix PCF8563 issue with pinMode thanks to ZeroKelvinKeyboard for the find.
This commit is contained in:
GuruSR 2022-06-13 08:46:01 -04:00 committed by GitHub
parent c1a26fe7b8
commit 07533a267a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1252,11 +1252,10 @@ void WatchyGSR::deepSleep(){
if (Options.NeedsSaving) RecordSettings();
DisplaySleep();
if (DM) SRTC.atMinuteWake(N % 60, H, D); else SRTC.nextMinuteWake(); // Moved to fix PCF8563 issue with pinMode thanks to ZeroKelvinKeyboard for the find.
for(I = 0; I < 40; I++) { pinMode(I, INPUT); }
esp_sleep_enable_ext1_wakeup((B ? SBMA.WakeMask() : 0) | BTN_MASK, ESP_EXT1_WAKEUP_ANY_HIGH); //enable deep sleep wake on button press ... |ACC_INT_MASK
esp_sleep_enable_ext0_wakeup(RTC_INT_PIN, 0); //enable deep sleep wake on RTC interrupt
if (DM) SRTC.atMinuteWake(N % 60, H, D);
else SRTC.nextMinuteWake();
esp_deep_sleep_start();
}