mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 10:21:40 +00:00
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:
parent
a8999d7759
commit
7129cee944
@ -97,7 +97,7 @@ void Channels::initDefaultChannel(ChannelIndex chIndex)
|
|||||||
channelSettings.psk.bytes[0] = defaultpskIndex;
|
channelSettings.psk.bytes[0] = defaultpskIndex;
|
||||||
channelSettings.psk.size = 1;
|
channelSettings.psk.size = 1;
|
||||||
strncpy(channelSettings.name, "", sizeof(channelSettings.name));
|
strncpy(channelSettings.name, "", sizeof(channelSettings.name));
|
||||||
channelSettings.module_settings.position_precision = 32; // default to sending location on the primary channel
|
channelSettings.module_settings.position_precision = 13; // default to sending location on the primary channel
|
||||||
channelSettings.has_module_settings = true;
|
channelSettings.has_module_settings = true;
|
||||||
|
|
||||||
ch.has_settings = true;
|
ch.has_settings = true;
|
||||||
|
@ -298,7 +298,8 @@ void PositionModule::sendOurPosition(NodeNum dest, bool wantReplies, uint8_t cha
|
|||||||
if (channels.getByIndex(channel).settings.has_module_settings) {
|
if (channels.getByIndex(channel).settings.has_module_settings) {
|
||||||
precision = channels.getByIndex(channel).settings.module_settings.position_precision;
|
precision = channels.getByIndex(channel).settings.module_settings.position_precision;
|
||||||
} else if (channels.getByIndex(channel).role == meshtastic_Channel_Role_PRIMARY) {
|
} 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 {
|
} else {
|
||||||
precision = 0;
|
precision = 0;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
// #define CHANNEL_0_NAME_USERPREFS "DEFCONnect"
|
// #define CHANNEL_0_NAME_USERPREFS "DEFCONnect"
|
||||||
// #define CHANNEL_0_PRECISION_USERPREFS 13
|
// #define CHANNEL_0_PRECISION_USERPREFS 14
|
||||||
|
|
||||||
// #define CONFIG_OWNER_LONG_NAME_USERPREFS "My Long Name"
|
// #define CONFIG_OWNER_LONG_NAME_USERPREFS "My Long Name"
|
||||||
// #define CONFIG_OWNER_SHORT_NAME_USERPREFS "MLN"
|
// #define CONFIG_OWNER_SHORT_NAME_USERPREFS "MLN"
|
||||||
|
Loading…
Reference in New Issue
Block a user