Skip to content

Commit

Permalink
fix(bw): bluetooth discovery popup menu lockup (#5918)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick authored Feb 16, 2025
1 parent 2f1ede3 commit d367ed3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions radio/src/gui/128x64/model_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion radio/src/gui/common/stdlcd/popups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d367ed3

Please sign in to comment.