From b24376b1fcc35da25458570002dd03c4ff99e0b9 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 8 Feb 2023 20:21:33 -0600 Subject: [PATCH] Well it helps if I commit the thing --- src/modules/AdminModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/AdminModule.cpp b/src/modules/AdminModule.cpp index 9389db732..553e69805 100644 --- a/src/modules/AdminModule.cpp +++ b/src/modules/AdminModule.cpp @@ -615,7 +615,7 @@ void AdminModule::handleSetHamMode(const meshtastic_HamParameters &p) // Remove PSK of primary channel for plaintext amateur usage auto primaryChannel = channels.getByIndex(channels.getPrimaryIndex()); - auto &channelSettings = ch.settings; + auto &channelSettings = primaryChannel.settings; channelSettings.psk.bytes[0] = 0; channelSettings.psk.size = 0; channels.setChannel(primaryChannel);