1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

Allow setup of new switches on X7

This commit is contained in:
3djc 2019-10-04 08:58:13 +02:00
parent 8ef57e2267
commit eca62ed13e

View file

@ -617,7 +617,7 @@ void menuModelSetup(event_t event)
}
int current = 0;
for (int i = 0; i < switchWarningsCount; i++) {
for (int i = 0; i < NUM_SWITCHES; i++) {
if (SWITCH_WARNING_ALLOWED(i)) {
div_t qr = div(current, MAX_SWITCH_PER_LINE);
if (!READ_ONLY() && event==EVT_KEY_BREAK(KEY_ENTER) && attr && l_posHorz == current && old_posHorz >= 0) {