Add isRouter to the power saving check.

pull/1077/head
Jm Casler 2022-01-10 16:37:35 -08:00
rodzic 0a43be6f8c
commit 4ddc113ed6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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");