Don't reboot for non-radio lora config changes (#3505)

This commit is contained in:
Ben Meadors authored and GitHub committed 2024-03-28 18:14:15 -05:00
1 parent 4c2d5c6a89
commit daa4d387c6
2 files changed
+16 -2

No files matched your search

-1
View File
@@ -246,7 +246,6 @@ Fsm powerFSM(&stateBOOT);
void PowerFSM_setup()
{
bool isRouter = (config.device.role == meshtastic_Config_DeviceConfig_Role_ROUTER ? 1 : 0);
bool isInfrastructureRole = isRouter || config.device.role == meshtastic_Config_DeviceConfig_Role_REPEATER;
bool isTrackerOrSensor = config.device.role == meshtastic_Config_DeviceConfig_Role_TRACKER ||
config.device.role == meshtastic_Config_DeviceConfig_Role_TAK_TRACKER ||
config.device.role == meshtastic_Config_DeviceConfig_Role_SENSOR;