From 94a560b6781e4fef3f2e8b3db8975d6fcbdb893c Mon Sep 17 00:00:00 2001 From: m1nl Date: Mon, 23 Jun 2025 00:21:41 +0200 Subject: [PATCH] do not detach button interrupt when going into light sleep --- src/input/ButtonThread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/ButtonThread.cpp b/src/input/ButtonThread.cpp index ad667f003..70d1a3ece 100644 --- a/src/input/ButtonThread.cpp +++ b/src/input/ButtonThread.cpp @@ -300,7 +300,8 @@ void ButtonThread::detachButtonInterrupts() // Allows sleep.cpp to configure its own interrupts, which wake the device on user-button press int ButtonThread::beforeLightSleep(void *unused) { - detachButtonInterrupts(); + // detachButtonInterrupts(); + // not really needed and stays in conflict with dynamic light sleep return 0; // Indicates success }