fix(bw): bluetooth discovery popup menu lockup (#5918)

This commit is contained in:
Peter Feerick
2025-02-17 09:34:00 +10:00
committed by GitHub
parent 2f1ede37dc
commit d367ed3ac1
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -430,8 +430,7 @@ void onBluetoothConnectMenu(const char * result)
uint8_t index = (result - reusableBuffer.moduleSetup.bt.devices[0]) / sizeof(reusableBuffer.moduleSetup.bt.devices[0]);
strncpy(bluetooth.distantAddr, reusableBuffer.moduleSetup.bt.devices[index], LEN_BLUETOOTH_ADDR);
bluetooth.state = BLUETOOTH_STATE_BIND_REQUESTED;
}
else {
} else {
reusableBuffer.moduleSetup.bt.devicesCount = 0;
bluetooth.state = BLUETOOTH_STATE_DISCOVER_END;
}
+1 -1
View File
@@ -337,8 +337,8 @@ void POPUP_MENU_TITLE(const char * s)
void POPUP_MENU_START(PopupMenuHandler handler)
{
killAllEvents();
if (handler != popupMenuHandler) {
killAllEvents();
AUDIO_KEY_PRESS();
popupMenuHandler = handler;
}