This commit is contained in:
committed by
Bertrand Songis
parent
721a166be3
commit
98798c1e42
@@ -229,8 +229,9 @@ void FlightModePanel::update()
|
|||||||
int idx = phase.rotaryEncoders[i];
|
int idx = phase.rotaryEncoders[i];
|
||||||
FlightModeData *phasere = &phase;
|
FlightModeData *phasere = &phase;
|
||||||
while (idx > 1024) {
|
while (idx > 1024) {
|
||||||
idx -= 1025;
|
int nextPhase = idx - 1025;
|
||||||
phasere = &model->flightModeData[idx];
|
if (nextPhase >= phaseIdx) nextPhase += 1;
|
||||||
|
phasere = &model->flightModeData[nextPhase];
|
||||||
idx = phasere->rotaryEncoders[i];
|
idx = phasere->rotaryEncoders[i];
|
||||||
reValues[i]->setDisabled(true);
|
reValues[i]->setDisabled(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user