Add convenience userpref for disabling lora during development and testing
This commit is contained in:
1 parent
398d1adea1
commit
5d12edbe07
2 files changed
+5
No files matched your search
@@ -1302,6 +1302,10 @@ void NodeDB::loadFromDisk()
|
||||
RadioInterface::bootstrapLoRaConfigFromPreset(config.lora);
|
||||
}
|
||||
|
||||
#if defined(USERPREFS_LORA_TX_DISABLED) && USERPREFS_LORA_TX_DISABLED
|
||||
config.lora.tx_enabled = false;
|
||||
#endif
|
||||
|
||||
if (backupSecurity.private_key.size > 0) {
|
||||
LOG_DEBUG("Restoring backup of security config");
|
||||
config.security = backupSecurity;
|
||||
|
||||
Reference in new issue
Block a user