mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 10:21:59 +00:00
feat: app-only settings on the device: privacy, adding contacts, advanced radio
- Settings schema gains Privacy (position in adverts, who can ask for status / location / sensors), Adding contacts (all or by type, max hops, replace oldest) and Advanced radio (path hash size, double ACK, listen before talk, interference threshold, RX boost, RX delay, airtime factor); both UIs build their rows from it - Auto-advert carries position only when Position in adverts is on - ui-new accordion holds 16 sections and 128 rows - docs: settings, tools, feature matrix Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3484,7 +3484,8 @@ void MyMesh::loop() {
|
||||
}
|
||||
|
||||
if (_prefs.advert_auto_interval_sec > 0 && millisHasNowPassed(_next_auto_advert_ms)) {
|
||||
mesh::Packet* pkt = (sensors.node_lat != 0 || sensors.node_lon != 0)
|
||||
// The position only where Privacy lets adverts carry it, and once there is one.
|
||||
mesh::Packet* pkt = (_prefs.advert_loc_policy != ADVERT_LOC_NONE && (sensors.node_lat != 0 || sensors.node_lon != 0))
|
||||
? createSelfAdvert(_prefs.node_name, sensors.node_lat, sensors.node_lon)
|
||||
: createSelfAdvert(_prefs.node_name);
|
||||
if (pkt) sendZeroHop(pkt);
|
||||
|
||||
Reference in New Issue
Block a user