Skip to content

Commit 8b42bf7

Browse files
authored
Don't reboot when setting lora config with portduino sim radio (#7716)
1 parent 1daf5aa commit 8b42bf7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/modules/AdminModule.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,13 @@ void AdminModule::handleSetConfig(const meshtastic_Config &c)
718718
requiresReboot = false;
719719
}
720720

721+
#if defined(ARCH_PORTDUINO)
722+
// If running on portduino and using SimRadio, do not require reboot
723+
if (SimRadio::instance) {
724+
requiresReboot = false;
725+
}
726+
#endif
727+
721728
#ifdef RF95_FAN_EN
722729
// Turn PA off if disabled by config
723730
if (c.payload_variant.lora.pa_fan_disabled) {

0 commit comments

Comments
 (0)