diff options
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c index 6381f59..6164506 100644 --- a/device-functions.c +++ b/device-functions.c @@ -4045,6 +4045,8 @@ int do_full_self_cal(CalStruct *caldata) long start_timer, diff_timer; int eprom_loc; + globals.Sys.cal_in_progress = 1; + Menu_Clear_Buttons(); LCD_clear(); /*0123456789012345678901234567890123456789*/ LCD_write(0,0,"Self-calibration in progress."); @@ -4125,6 +4127,8 @@ int do_full_self_cal(CalStruct *caldata) eprom_loc = (char *) &(globals.Flash.self_cal_typical_time_sec) - (char *) &(globals.Flash.flash_start); writeUserBlock(&globals.Flash, eprom_loc, sizeof(globals.Flash.self_cal_typical_time_sec)); + globals.Sys.cal_in_progress = 0; + if (caldata->total_errors) { return SelfCalError; } else { |