mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-10-22 21:22:14 +00:00
fix(nrf52): persist meshtastic config before restart
This commit is contained in:
1 parent
f6a930c03d
commit
6bacff368e
1 file changed
+4
-2
@@ -1008,17 +1008,19 @@ void MeshtasticBleService::requestPhoneLowerPowerConnection()
|
||||
void MeshtasticBleService::onPhoneBluetoothConfigChanged()
|
||||
{
|
||||
markConfigSavePending(true, false);
|
||||
bleLogBoth("[BLE][nrf52][mt] saveBluetoothConfig queued mode=%u pin=%06lu enabled=%u",
|
||||
bleLogBoth("[BLE][nrf52][mt] saveBluetoothConfig requested mode=%u pin=%06lu enabled=%u",
|
||||
static_cast<unsigned>(ble_config_.mode),
|
||||
static_cast<unsigned long>(ble_config_.fixed_pin),
|
||||
ble_config_.enabled ? 1U : 0U);
|
||||
flushPendingConfigSaves(true);
|
||||
}
|
||||
|
||||
void MeshtasticBleService::onPhoneModuleConfigChanged()
|
||||
{
|
||||
markConfigSavePending(false, true);
|
||||
syncMqttProxySettings();
|
||||
bleLogBoth("[BLE][nrf52][mt] saveModuleConfig queued");
|
||||
bleLogBoth("[BLE][nrf52][mt] saveModuleConfig requested");
|
||||
flushPendingConfigSaves(true);
|
||||
}
|
||||
|
||||
void MeshtasticBleService::notifyFromNum(uint32_t from_num)
|
||||
|
||||
Reference in new issue
Block a user