Skip to content

Issue using lightsleep on CoreS3 (lite) #214

@ngolf

Description

@ngolf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions