mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
PXX2 BIND could not stop on [EXIT] key pressed
This commit is contained in:
parent
c469794753
commit
c2eb542d15
1 changed files with 2 additions and 3 deletions
|
@ -1341,8 +1341,7 @@ void menuModelSetup(event_t event)
|
|||
reusableBuffer.moduleSetup.pxx2.bindReceiverId = receiverSlot;
|
||||
moduleSettings[moduleIdx].mode ^= MODULE_MODE_BIND;
|
||||
}
|
||||
if (moduleSettings[moduleIdx].mode == MODULE_MODE_BIND) {
|
||||
s_editMode = 1;
|
||||
if (s_editMode) {
|
||||
if (reusableBuffer.moduleSetup.pxx2.bindStep == BIND_START && reusableBuffer.moduleSetup.pxx2.bindCandidateReceiversCount > 0) {
|
||||
popupMenuItemsCount = min<uint8_t>(reusableBuffer.moduleSetup.pxx2.bindCandidateReceiversCount, PXX2_MAX_RECEIVERS_PER_MODULE);
|
||||
for (uint8_t i=0; i<popupMenuItemsCount; i++) {
|
||||
|
@ -1353,7 +1352,7 @@ void menuModelSetup(event_t event)
|
|||
}
|
||||
}
|
||||
else {
|
||||
s_editMode = 0;
|
||||
moduleSettings[moduleIdx].mode == MODULE_MODE_NORMAL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue