A couple of fixes

This commit is contained in:
jpirnay
2026-05-11 23:02:27 +02:00
parent 5b3f1ad200
commit 4982f803a7
7 changed files with 35 additions and 23 deletions
+1
View File
@@ -210,6 +210,7 @@ void setup() {
if (wakeupReason == HalGPIO::WakeupReason::AfterUSBPower) {
// If USB power caused a cold boot, go back to sleep immediately without initializing subsystems
LOG_DBG("MAIN", "Wakeup reason: After USB Power => Deep sleep");
halTiltSensor.deepSleep();
powerManager.startDeepSleep(gpio);
return;
}