I'm encountering an error when trying to get to light sleep on a CoreS3 Lite:
(debug message from my program): Sleep delay reached, entering light sleep
E (61558) sleep: Incorrect wakeup source (4) to disable.
The code does:
In setup():
(...)
M5.Power.begin()
..
In loop():
(...)
if (hasBattery && (idleTime > SLEEP_DELAY_MS)) {
Serial.println("Sleep delay reached, entering light sleep");
M5.Power.lightSleep(0); // wake only on power button
lastInteractionTime = millis(); // reset after wake
}
No other M5.Power calls, other than getBatteryLevel() and isCharging.
I'm using v0.4.6 of the library, and the firmware of the cores3 is on the latest version too.
I'm encountering an error when trying to get to light sleep on a CoreS3 Lite:
The code does:
In setup():
(...)
M5.Power.begin()..
In loop():
No other M5.Power calls, other than getBatteryLevel() and isCharging.
I'm using v0.4.6 of the library, and the firmware of the cores3 is on the latest version too.