1
0
Fork 0
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:
Bertrand Songis 2019-03-13 14:00:19 +01:00
parent c469794753
commit c2eb542d15

View file

@ -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 {