From b70a359fe83a3a0d504db590482c290abdefdceb Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Tue, 30 Mar 2021 23:11:56 +0800 Subject: [PATCH] leave phone timeout off a bit longer --- src/PowerFSM.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PowerFSM.cpp b/src/PowerFSM.cpp index 338412c3d..e101c494b 100644 --- a/src/PowerFSM.cpp +++ b/src/PowerFSM.cpp @@ -303,7 +303,9 @@ void PowerFSM_setup() #ifndef NRF52_SERIES // We never enter light-sleep or NB states on NRF52 (because the CPU uses so little power normally) - powerFSM.add_timed_transition(&stateDARK, &stateNB, getPref_phone_timeout_secs() * 1000, NULL, "Phone timeout"); + // I don't think this transition is correct, turning off for now - @geeksville + // powerFSM.add_timed_transition(&stateDARK, &stateNB, getPref_phone_timeout_secs() * 1000, NULL, "Phone timeout"); + powerFSM.add_timed_transition(&stateNB, &stateLS, getPref_min_wake_secs() * 1000, NULL, "Min wake timeout"); powerFSM.add_timed_transition(&stateDARK, &stateLS, getPref_wait_bluetooth_secs() * 1000, NULL, "Bluetooth timeout"); #else