Only set node_info_broadcast_secs when not a Router

pull/2274/head
GUVWAF 2023-02-11 17:17:11 +01:00
rodzic c834252f1c
commit 5ca3d9169a
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -170,7 +170,8 @@ void NodeDB::installDefaultConfig()
config.lora.hop_limit = HOP_RELIABLE;
config.position.gps_enabled = true;
config.position.position_broadcast_smart_enabled = true;
config.device.node_info_broadcast_secs = 3 * 60 * 60;
if (config.device.role != meshtastic_Config_DeviceConfig_Role_ROUTER)
config.device.node_info_broadcast_secs = 3 * 60 * 60;
config.device.serial_enabled = true;
resetRadioConfig();
strncpy(config.network.ntp_server, "0.pool.ntp.org", 32);