feature: default to fuzzy GPS location on the Default Channel (#4467)

* feature: default to fuzzy GPS location on the Default Channel

* Default to 13

* 13 default

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Rafael Cortês
2024-08-18 07:38:54 -05:00
committed by GitHub
co-authored by Ben Meadors
parent a8999d7759
commit 7129cee944
3 files changed
+6 -5

No files matched your search

+3 -2
View File
@@ -298,7 +298,8 @@ void PositionModule::sendOurPosition(NodeNum dest, bool wantReplies, uint8_t cha
if (channels.getByIndex(channel).settings.has_module_settings) {
precision = channels.getByIndex(channel).settings.module_settings.position_precision;
} else if (channels.getByIndex(channel).role == meshtastic_Channel_Role_PRIMARY) {
precision = 32;
// backwards compatibility for Primary channels created before position_precision was set by default
precision = 13;
} else {
precision = 0;
}
@@ -470,4 +471,4 @@ void PositionModule::handleNewPosition()
}
}
#endif
#endif