From 88a44eede0a10dbf291619d4cebe61839193acce Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 9 Feb 2023 07:51:41 -0600 Subject: [PATCH] Rebroadcast mode to local_only for hams --- src/modules/AdminModule.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/AdminModule.cpp b/src/modules/AdminModule.cpp index 553e69805..51141df43 100644 --- a/src/modules/AdminModule.cpp +++ b/src/modules/AdminModule.cpp @@ -604,6 +604,7 @@ void AdminModule::saveChanges(int saveWhat, bool shouldReboot) void AdminModule::handleSetHamMode(const meshtastic_HamParameters &p) { + // Set call sign and override lora limitations for licensed use strncpy(owner.long_name, p.call_sign, sizeof(owner.long_name)); owner.is_licensed = true; config.lora.override_duty_cycle = true; @@ -613,6 +614,7 @@ void AdminModule::handleSetHamMode(const meshtastic_HamParameters &p) // For FCC minimum call-sign announcement config.device.node_info_broadcast_secs = 600; + config.device.rebroadcast_mode = meshtastic_Config_DeviceConfig_RebroadcastMode_LOCAL_ONLY; // Remove PSK of primary channel for plaintext amateur usage auto primaryChannel = channels.getByIndex(channels.getPrimaryIndex()); auto &channelSettings = primaryChannel.settings;