From 4cec5cd1e365c35f824aa96746b942810d3a9bb8 Mon Sep 17 00:00:00 2001 From: JustScott Date: Tue, 16 Jan 2024 01:33:19 -0600 Subject: [PATCH] Fix bluetooth settings issues. NimbleController.cpp was running bleController.Disconnect() each time NimbleController::EnableRadio() was called by SystemTask.cpp's case matching Messages::BleRadioEnableToggle. This meant that each time the bluetooth settings page was opened, the Messages::BleRadioEnableToggle case was matched and the setting variable bleRadioEnabled was set to false. This caused the conditionals for the checkboxList class call in SettingBluetooth.cpp to not allow toggling the bluetooth on and off, and caused the bluetooth status icon to dissappear in StatusIcons.cpp --- src/components/ble/NimbleController.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/ble/NimbleController.cpp b/src/components/ble/NimbleController.cpp index 2e7f8003e7..3e19d26b53 100644 --- a/src/components/ble/NimbleController.cpp +++ b/src/components/ble/NimbleController.cpp @@ -402,7 +402,6 @@ void NimbleController::NotifyBatteryLevel(uint8_t level) { void NimbleController::EnableRadio() { bleController.EnableRadio(); - bleController.Disconnect(); fastAdvCount = 0; StartAdvertising(); }