Bugfix: Don't toggle BLE when choosing active state (#8579)

This commit is contained in:
Jonathan Bennett
2025-11-06 21:01:30 -06:00
committed by GitHub
parent 4d86bbafe6
commit 7eca061f01

View File

@@ -936,7 +936,9 @@ void menuHandler::BluetoothToggleMenu()
bannerOptions.optionsArrayPtr = optionsArray;
bannerOptions.optionsCount = 3;
bannerOptions.bannerCallback = [](int selected) -> void {
if (selected == 1 || selected == 2) {
if (selected == 0)
return;
else if (selected != (config.bluetooth.enabled ? 1 : 2)) {
InputEvent event = {.inputEvent = (input_broker_event)170, .kbchar = 170, .touchX = 0, .touchY = 0};
inputBroker->injectInputEvent(&event);
}