Stop bind on bind response received

This commit is contained in:
Arne Schwabe
2016-10-16 22:24:37 +02:00
parent f12ce22ade
commit 6bec8cef5a
3 changed files with 14 additions and 0 deletions
+7
View File
@@ -929,6 +929,12 @@ void menuModelSetup(event_t event)
lcdDrawText(MODEL_SETUP_2ND_COLUMN+xOffsetBind, y, STR_MODULE_BIND, l_posHorz==1 ? attr : 0);
lcdDrawText(MODEL_SETUP_2ND_COLUMN+MODEL_SETUP_RANGE_OFS+xOffsetBind, y, STR_MODULE_RANGE, l_posHorz==2 ? attr : 0);
uint8_t newFlag = 0;
#if defined(MULTIMODULE)
if (spektrumBindFinished) {
spektrumBindFinished = false;
s_editMode=0;
}
#endif
if (attr && l_posHorz>0 && s_editMode>0) {
if (l_posHorz == 1)
newFlag = MODULE_BIND;
@@ -937,6 +943,7 @@ void menuModelSetup(event_t event)
}
}
moduleFlag[moduleIdx] = newFlag;
}
}
break;