From 0a43be6f8c5cd64efd6f51eadde8bb69303f2ec7 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Mon, 10 Jan 2022 07:57:25 -0800 Subject: [PATCH 1/2] Add Meshtastic to bootup --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 0b1b676b2..b90dbc82a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -397,6 +397,8 @@ void setup() } #endif + DEBUG_MSG("\n\n//\\ E S H T A /\\ S T / C\n\n"); + initDeepSleep(); #ifdef VEXT_ENABLE From 4ddc113ed6563441109ea0e7f60b05373e646e09 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Mon, 10 Jan 2022 16:37:35 -0800 Subject: [PATCH 2/2] Add isRouter to the power saving check. --- src/PowerFSM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowerFSM.cpp b/src/PowerFSM.cpp index 1548ed9f8..a3c55c523 100644 --- a/src/PowerFSM.cpp +++ b/src/PowerFSM.cpp @@ -338,7 +338,7 @@ void PowerFSM_setup() // We never enter light-sleep or NB states on NRF52 (because the CPU uses so little power normally) // See: https://github.com/meshtastic/Meshtastic-device/issues/1071 - if (radioConfig.preferences.is_power_saving) { + if (isRouter || radioConfig.preferences.is_power_saving) { // 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");