From 3f5c0cb6ac1a99b8db1c59290f50ee2872c194b2 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 18 Feb 2023 18:32:46 -0600 Subject: [PATCH] Don't auto set to default primary channel --- src/mesh/NodeDB.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 5c28f5261..9702fb5f2 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -235,11 +235,6 @@ void NodeDB::installRoleDefaults(meshtastic_Config_DeviceConfig_Role role) initModuleConfigIntervals(); } else if (role == meshtastic_Config_DeviceConfig_Role_REPEATER) { config.display.screen_on_secs = 1; - meshtastic_Channel &ch = channels.getByIndex(channels.getPrimaryIndex()); - meshtastic_ChannelSettings &channelSettings = ch.settings; - uint8_t defaultpskIndex = 1; - channelSettings.psk.bytes[0] = defaultpskIndex; - channelSettings.psk.size = 1; } else if (role == meshtastic_Config_DeviceConfig_Role_TRACKER) { config.position.position_broadcast_smart_enabled = false; config.position.position_broadcast_secs = 120;