Review comments
This commit is contained in:
@@ -350,6 +350,8 @@ void loop() {
|
||||
// Track power button hold for sleep. We require a fresh press edge (wasPressed)
|
||||
// before starting to measure hold time, so that a hold carried over from boot
|
||||
// (wake-up press) is never misinterpreted as a "go to sleep" press.
|
||||
// The power button long-press is not user-remappable, so this path always owns it.
|
||||
// Sleep mapped to other buttons is handled by the dispatcher's BTN_SLEEP case below.
|
||||
static unsigned long powerHoldStart = 0;
|
||||
if (gpio.wasPressed(HalGPIO::BTN_POWER)) {
|
||||
powerHoldStart = millis();
|
||||
|
||||
Reference in New Issue
Block a user