summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c
index 9c641c0..271c6bc 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.");
@@ -4124,6 +4126,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 {