fix: only display PPM multiplier for trainer when PPM is used (#5649)

This commit is contained in:
3djc
2024-11-09 12:35:16 +10:00
committed by GitHub
parent 50cfd4d1f7
commit d1c7bff8ef
2 changed files with 20 additions and 16 deletions
@@ -97,9 +97,11 @@ void menuRadioTrainer(event_t event)
}
attr = (menuVerticalPosition==HEADER_LINE+4) ? blink : 0;
lcdDrawTextAlignedLeft(y, STR_MULTIPLIER);
lcdDrawNumber(LEN_MULTIPLIER*FW+3*FW, y, g_eeGeneral.PPM_Multiplier+10, attr|PREC1|RIGHT);
if (attr) CHECK_INCDEC_GENVAR(event, g_eeGeneral.PPM_Multiplier, -10, 40);
if (g_model.trainerData.mode == TRAINER_MODE_MASTER_TRAINER_JACK) {
lcdDrawTextAlignedLeft(y, STR_MULTIPLIER);
lcdDrawNumber(LEN_MULTIPLIER * FW + 3 * FW, y, g_eeGeneral.PPM_Multiplier + 10, attr | PREC1 | RIGHT);
if (attr) CHECK_INCDEC_GENVAR(event, g_eeGeneral.PPM_Multiplier, -10, 40);
}
y += FH;
attr = (menuVerticalPosition==HEADER_LINE+5) ? INVERS : 0;