diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-11-13 15:13:34 -0500 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-11-13 15:13:34 -0500 |
commit | 9e168483a2b2b451388d6e474c85ec080b7ffcbb (patch) | |
tree | 38347cdddda423c8da63f9c585d823edd1cc483f /device-functions.c | |
parent | 8d092ef3e8d7c0dd8c4be63391d39dc274ca4abe (diff) |
warn if command received during self-cal
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 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 { |