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];
|
||||
FlightModeData *phasere = &phase;
|
||||
while (idx > 1024) {
|
||||
idx -= 1025;
|
||||
phasere = &model->flightModeData[idx];
|
||||
int nextPhase = idx - 1025;
|
||||
if (nextPhase >= phaseIdx) nextPhase += 1;
|
||||
phasere = &model->flightModeData[nextPhase];
|
||||
idx = phasere->rotaryEncoders[i];
|
||||
reValues[i]->setDisabled(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user