mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00
add backward compatible position flag defaults (#884)
This commit is contained in:
parent
6fc3c9c868
commit
992bbe76d7
@ -125,6 +125,11 @@ void NodeDB::installDefaultRadioConfig()
|
|||||||
memset(&radioConfig, 0, sizeof(radioConfig));
|
memset(&radioConfig, 0, sizeof(radioConfig));
|
||||||
radioConfig.has_preferences = true;
|
radioConfig.has_preferences = true;
|
||||||
resetRadioConfig();
|
resetRadioConfig();
|
||||||
|
|
||||||
|
// for backward compat, default position flags are BAT+ALT+MSL (0x23 = 35)
|
||||||
|
radioConfig.preferences.position_flags = (PositionFlags_POS_BATTERY |
|
||||||
|
PositionFlags_POS_ALTITUDE | PositionFlags_POS_ALT_MSL);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NodeDB::installDefaultChannels()
|
void NodeDB::installDefaultChannels()
|
||||||
|
Loading…
Reference in New Issue
Block a user