mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 17:42:48 +00:00
Merge pull request #1077 from mc-hamster/master
Add isRouter to the power saving check.
This commit is contained in:
commit
4a036db612
@ -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)
|
// 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
|
// 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
|
// 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(&stateDARK, &stateNB, getPref_phone_timeout_secs() * 1000, NULL, "Phone timeout");
|
||||||
|
Loading…
Reference in New Issue
Block a user