Bluetooth modes (#1633)

* Formatting and comments

* Esp32 bluetooth modes

* Comment
This commit is contained in:
Ben Meadors
2022-08-16 20:42:43 -05:00
committed by GitHub
parent 86d3759f55
commit b028af0d82
4 changed files with 21 additions and 24 deletions

View File

@@ -159,6 +159,7 @@ void NodeDB::installDefaultConfig()
// FIXME: Default to bluetooth capability of platform as default
config.bluetooth.enabled = true;
config.bluetooth.fixed_pin = defaultBLEPin;
config.bluetooth.mode = screen_found ? Config_BluetoothConfig_PairingMode_RandomPin : Config_BluetoothConfig_PairingMode_FixedPin;
// for backward compat, default position flags are ALT+MSL
config.position.position_flags = (Config_PositionConfig_PositionFlags_POS_ALTITUDE | Config_PositionConfig_PositionFlags_POS_ALT_MSL);
}