Skip to content

Commit 7eca061

Browse files
authored
Bugfix: Don't toggle BLE when choosing active state (#8579)
1 parent 4d86bba commit 7eca061

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/graphics/draw/MenuHandler.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,9 @@ void menuHandler::BluetoothToggleMenu()
936936
bannerOptions.optionsArrayPtr = optionsArray;
937937
bannerOptions.optionsCount = 3;
938938
bannerOptions.bannerCallback = [](int selected) -> void {
939-
if (selected == 1 || selected == 2) {
939+
if (selected == 0)
940+
return;
941+
else if (selected != (config.bluetooth.enabled ? 1 : 2)) {
940942
InputEvent event = {.inputEvent = (input_broker_event)170, .kbchar = 170, .touchX = 0, .touchY = 0};
941943
inputBroker->injectInputEvent(&event);
942944
}

0 commit comments

Comments
 (0)