Skip to content

Commit cb0c776

Browse files
committed
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
1 parent 2135e12 commit cb0c776

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/components/ble/NimbleController.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ void NimbleController::NotifyBatteryLevel(uint8_t level) {
402402

403403
void NimbleController::EnableRadio() {
404404
bleController.EnableRadio();
405-
bleController.Disconnect();
406405
fastAdvCount = 0;
407406
StartAdvertising();
408407
}

0 commit comments

Comments
 (0)