X7 : fix calibration interuption (#4835)
* Fix 4833 * Less worse fix ? * Trying something else
This commit is contained in:
@@ -49,6 +49,7 @@ void menuCommonCalib(event_t event)
|
|||||||
switch (event)
|
switch (event)
|
||||||
{
|
{
|
||||||
case EVT_ENTRY:
|
case EVT_ENTRY:
|
||||||
|
case EVT_KEY_BREAK(KEY_EXIT):
|
||||||
reusableBuffer.calib.state = CALIB_START;
|
reusableBuffer.calib.state = CALIB_START;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -111,13 +112,11 @@ void menuCommonCalib(event_t event)
|
|||||||
void menuRadioCalibration(event_t event)
|
void menuRadioCalibration(event_t event)
|
||||||
{
|
{
|
||||||
check_simple(event, MENU_RADIO_CALIBRATION, menuTabGeneral, DIM(menuTabGeneral), 0);
|
check_simple(event, MENU_RADIO_CALIBRATION, menuTabGeneral, DIM(menuTabGeneral), 0);
|
||||||
|
TITLE(STR_MENUCALIBRATION);
|
||||||
|
menuCommonCalib(READ_ONLY() ? 0 : event);
|
||||||
if (menuEvent) {
|
if (menuEvent) {
|
||||||
menuCalibrationState = CALIB_START;
|
menuCalibrationState = CALIB_START;
|
||||||
}
|
}
|
||||||
|
|
||||||
TITLE(STR_MENUCALIBRATION);
|
|
||||||
menuCommonCalib(READ_ONLY() ? 0 : event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void menuFirstCalib(event_t event)
|
void menuFirstCalib(event_t event)
|
||||||
|
|||||||
Reference in New Issue
Block a user