mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 10:42:08 +00:00
Rebroadcast mode to local_only for hams
This commit is contained in:
parent
0c240a1dff
commit
b1677e0312
@ -604,6 +604,7 @@ void AdminModule::saveChanges(int saveWhat, bool shouldReboot)
|
|||||||
|
|
||||||
void AdminModule::handleSetHamMode(const meshtastic_HamParameters &p)
|
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));
|
strncpy(owner.long_name, p.call_sign, sizeof(owner.long_name));
|
||||||
owner.is_licensed = true;
|
owner.is_licensed = true;
|
||||||
config.lora.override_duty_cycle = true;
|
config.lora.override_duty_cycle = true;
|
||||||
@ -613,6 +614,7 @@ void AdminModule::handleSetHamMode(const meshtastic_HamParameters &p)
|
|||||||
// For FCC minimum call-sign announcement
|
// For FCC minimum call-sign announcement
|
||||||
config.device.node_info_broadcast_secs = 600;
|
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
|
// Remove PSK of primary channel for plaintext amateur usage
|
||||||
auto primaryChannel = channels.getByIndex(channels.getPrimaryIndex());
|
auto primaryChannel = channels.getByIndex(channels.getPrimaryIndex());
|
||||||
auto &channelSettings = primaryChannel.settings;
|
auto &channelSettings = primaryChannel.settings;
|
||||||
|
Loading…
Reference in New Issue
Block a user