Fixes new vario params
This commit is contained in:
@@ -144,7 +144,7 @@ void FullScreenDialog::runForever()
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkBacklight();
|
checkBacklight();
|
||||||
wdt_reset();
|
//wdt_reset(); //TODO
|
||||||
|
|
||||||
RTOS_WAIT_MS(20);
|
RTOS_WAIT_MS(20);
|
||||||
mainWindow.run(false);
|
mainWindow.run(false);
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ void RadioSetupPage::build(FormWindow * window)
|
|||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
new StaticText(window, grid.getLabelSlot(true), STR_PITCH_AT_MAX);
|
new StaticText(window, grid.getLabelSlot(true), STR_PITCH_AT_MAX);
|
||||||
edit = new NumberEdit(window, grid.getFieldSlot(), -80, 80,
|
edit = new NumberEdit(window, grid.getFieldSlot(), 900, 2500,
|
||||||
GET_DEFAULT(VARIO_FREQUENCY_ZERO + (g_eeGeneral.varioPitch * 10) + VARIO_FREQUENCY_RANGE + (g_eeGeneral.varioRange * 10)),
|
GET_DEFAULT(VARIO_FREQUENCY_ZERO + (g_eeGeneral.varioPitch * 10) + VARIO_FREQUENCY_RANGE + (g_eeGeneral.varioRange * 10)),
|
||||||
SET_VALUE(g_eeGeneral.varioRange, (newValue - VARIO_FREQUENCY_ZERO - VARIO_FREQUENCY_RANGE) / 10 - g_eeGeneral.varioPitch ));
|
SET_VALUE(g_eeGeneral.varioRange, (newValue - VARIO_FREQUENCY_ZERO - VARIO_FREQUENCY_RANGE) / 10 - g_eeGeneral.varioPitch ));
|
||||||
edit->setStep(10);
|
edit->setStep(10);
|
||||||
@@ -265,11 +265,11 @@ void RadioSetupPage::build(FormWindow * window)
|
|||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
new StaticText(window, grid.getLabelSlot(true), STR_REPEAT_AT_ZERO);
|
new StaticText(window, grid.getLabelSlot(true), STR_REPEAT_AT_ZERO);
|
||||||
edit = new NumberEdit(window, grid.getFieldSlot(), -30, 50,
|
edit = new NumberEdit(window, grid.getFieldSlot(), 200, 1000,
|
||||||
GET_DEFAULT(VARIO_REPEAT_ZERO + (g_eeGeneral.varioRepeat * 10)),
|
GET_DEFAULT(VARIO_REPEAT_ZERO + (g_eeGeneral.varioRepeat * 10)),
|
||||||
SET_VALUE(g_eeGeneral.varioRepeat, (newValue - VARIO_REPEAT_ZERO) / 10));
|
SET_VALUE(g_eeGeneral.varioRepeat, (newValue - VARIO_REPEAT_ZERO) / 10));
|
||||||
edit->setStep(10);
|
edit->setStep(10);
|
||||||
edit->setSuffix("Ms");
|
edit->setSuffix("ms");
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user