public builds: Czech mesh defaults (meshcore.cz wiki)
pub-release / release (push) Successful in 20m57s
pub-release / release (push) Successful in 20m57s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f7887324e5
commit
88ef08c6d5
6 files changed
+80
-1
No files matched your search
@@ -1344,6 +1344,9 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
|
||||
|
||||
// defaults
|
||||
_prefs.airtime_factor = 1.0;
|
||||
#ifdef AIRTIME_FACTOR_DEFAULT // CUSTOM (TeTeHacko): e.g. 9 = 10 % duty cycle (meshcore.cz)
|
||||
_prefs.airtime_factor = AIRTIME_FACTOR_DEFAULT;
|
||||
#endif
|
||||
_prefs.rx_delay_base = 0.0f; // turn off by default, was 10.0;
|
||||
_prefs.tx_delay_factor = 0.5f; // was 0.25f
|
||||
_prefs.direct_tx_delay_factor = 0.3f; // was 0.2
|
||||
@@ -1463,7 +1466,18 @@ void MyMesh::begin(FILESYSTEM *fs) {
|
||||
next_fair_sender_low_refill = futureMillis(fairAdvertRefillMs());
|
||||
next_fair_group_refill = futureMillis(fairGroupRefillMs());
|
||||
// TODO: key_store.begin();
|
||||
#ifdef DEFAULT_REGIONS
|
||||
// CUSTOM (TeTeHacko): a node that never saved regions gets DEFAULT_REGIONS
|
||||
// (e.g. "cz,cs", meshcore.cz/regiony) -- as if `region put` each + `region
|
||||
// save`. Once /regions2 exists the operator's list wins, removals included.
|
||||
bool regions_saved = _fs->exists("/regions2");
|
||||
#endif
|
||||
region_map.load(_fs);
|
||||
#ifdef DEFAULT_REGIONS
|
||||
if (!regions_saved && region_map.putDefaults(DEFAULT_REGIONS) > 0) {
|
||||
region_map.save(_fs);
|
||||
}
|
||||
#endif
|
||||
|
||||
// establish default-scope
|
||||
{
|
||||
|
||||
@@ -646,6 +646,9 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
|
||||
|
||||
// defaults
|
||||
_prefs.airtime_factor = 1.0;
|
||||
#ifdef AIRTIME_FACTOR_DEFAULT // CUSTOM (TeTeHacko): e.g. 9 = 10 % duty cycle (meshcore.cz)
|
||||
_prefs.airtime_factor = AIRTIME_FACTOR_DEFAULT;
|
||||
#endif
|
||||
_prefs.rx_delay_base = 0.0f; // off by default, was 10.0
|
||||
_prefs.tx_delay_factor = 0.5f; // was 0.25f;
|
||||
_prefs.direct_tx_delay_factor = 0.2f; // was zero
|
||||
@@ -661,6 +664,12 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
|
||||
_prefs.disable_fwd = 1;
|
||||
_prefs.advert_interval = 1; // default to 2 minutes for NEW installs
|
||||
_prefs.flood_advert_interval = 47; // 47 hours
|
||||
#ifdef ADVERT_INTERVAL_DEFAULT // CUSTOM (TeTeHacko): same knobs as simple_repeater
|
||||
_prefs.advert_interval = ADVERT_INTERVAL_DEFAULT;
|
||||
#endif
|
||||
#ifdef FLOOD_ADVERT_INTERVAL_DEFAULT
|
||||
_prefs.flood_advert_interval = FLOOD_ADVERT_INTERVAL_DEFAULT;
|
||||
#endif
|
||||
_prefs.flood_max = 64;
|
||||
_prefs.flood_max_unscoped = 64;
|
||||
_prefs.flood_max_advert = 8;
|
||||
|
||||
Reference in new issue
Block a user