Well it helps if I commit the thing

This commit is contained in:
Ben Meadors 2023-02-08 20:21:33 -06:00
parent bcaf834853
commit b24376b1fc

View File

@ -615,7 +615,7 @@ void AdminModule::handleSetHamMode(const meshtastic_HamParameters &p)
// Remove PSK of primary channel for plaintext amateur usage // Remove PSK of primary channel for plaintext amateur usage
auto primaryChannel = channels.getByIndex(channels.getPrimaryIndex()); auto primaryChannel = channels.getByIndex(channels.getPrimaryIndex());
auto &channelSettings = ch.settings; auto &channelSettings = primaryChannel.settings;
channelSettings.psk.bytes[0] = 0; channelSettings.psk.bytes[0] = 0;
channelSettings.psk.size = 0; channelSettings.psk.size = 0;
channels.setChannel(primaryChannel); channels.setChannel(primaryChannel);