mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-11-04 09:27:23 +00:00
update default prefs
This commit is contained in:
1 parent
6de710acce
commit
e1c04113ca
2 files changed
+7
No files matched your search
@@ -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