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 /error_utils.c | |
parent | 8d092ef3e8d7c0dd8c4be63391d39dc274ca4abe (diff) |
warn if command received during self-cal
Diffstat (limited to 'error_utils.c')
-rw-r--r-- | error_utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/error_utils.c b/error_utils.c index 974da44..61eaeb4 100644 --- a/error_utils.c +++ b/error_utils.c @@ -61,6 +61,7 @@ void set_gpib_error_flags (int error_num) case SelfCalError: case NetworkNotFound: case Startup_Not_Finished: + case Cal_In_Progress: GPIB_Set_Device_Dependent_Error(); break; default: @@ -524,6 +525,10 @@ void get_error_text(gchar **response, int error_num) format_error_text(response,-300,"Not ready for commands yet. Still booting up."); break; + case Cal_In_Progress: + format_error_text(response,-300,"Calibration in progress. Turn off instrument to cancel."); + break; + default: format_error_text(response,-200,"Specific problem unknown."); } |