mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-10 03:55:39 +00:00
update default prefs
This commit is contained in:
@@ -133,6 +133,10 @@ bool RepeaterDataStore::loadPrefs(NodePrefs& prefs) {
|
||||
LOG_DBG("No prefs file at %s, using defaults", path);
|
||||
initNodePrefs(&prefs);
|
||||
strcpy(prefs.node_name, "Repeater");
|
||||
prefs.advert_loc_policy = ADVERT_LOC_PREFS;
|
||||
prefs.flood_advert_interval = 25;
|
||||
prefs.loop_detect = LOOP_DETECT_MINIMAL;
|
||||
prefs.path_hash_mode = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -831,6 +831,9 @@ RepeaterMesh::RepeaterMesh(mesh::MainBoard& board, mesh::Radio& radio, mesh::Mil
|
||||
initNodePrefs(&_prefs);
|
||||
strcpy(_prefs.node_name, "Repeater");
|
||||
_prefs.advert_loc_policy = ADVERT_LOC_PREFS; // Repeaters always advertise prefs coordinates
|
||||
_prefs.flood_advert_interval = 25; // hours
|
||||
_prefs.loop_detect = LOOP_DETECT_MINIMAL;
|
||||
_prefs.path_hash_mode = 1;
|
||||
#if IS_ENABLED(CONFIG_ZEPHCORE_REPEATER_UPLINK) && IS_ENABLED(CONFIG_MQTT_LIB)
|
||||
memset(&_uplink_creds, 0, sizeof(_uplink_creds));
|
||||
observer_creds_init(&_uplink_creds);
|
||||
|
||||
Reference in New Issue
Block a user