Version 1.4.3J.
Moved code to fix PCF8563 issue with pinMode thanks to ZeroKelvinKeyboard for the find.
This commit is contained in:
parent
c1a26fe7b8
commit
07533a267a
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user