diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:15:18 -0500 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:15:18 -0500 |
commit | 6d023eaf845b9d8dc6d7fe4a96e024b742ba27d4 (patch) | |
tree | a6271140b0f65bccf63b7294704e12aab4f81a56 /error_utils.c | |
parent | 4f604dd6f1c8af283a9fa65729f56fbf15a99e05 (diff) |
ignore non-errors
Diffstat (limited to 'error_utils.c')
-rw-r--r-- | error_utils.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/error_utils.c b/error_utils.c index 34b7091..8b28cf6 100644 --- a/error_utils.c +++ b/error_utils.c @@ -99,6 +99,7 @@ void queue_error_and_get_text(gchar** response, int error_num) if (error_num == OK) { return; } + queue_error (error_num); get_error_text (response, error_num); return; @@ -112,6 +113,7 @@ void queue_error_from_parser(gchar** response, int error_num) if (error_num == OK) { return; } + queue_error_and_get_text(response, error_num); Menu_Refresh(); return; @@ -122,10 +124,10 @@ void queue_error_for_gpib_only(int error_num); void queue_error_for_gpib_only(int error_num) { -// not part of this project, but left in for coder's reference. Can be deleted for now if (error_num == OK) { return; } + queue_error(error_num); return; } @@ -133,6 +135,10 @@ void queue_error_for_gpib_only(int error_num) void queue_error_and_display_on_LCD(int error_num) { + if (error_num == OK) { + return; + } + gchar* response = NULL; queue_error_and_get_text(&response, error_num); LCD_display_extended_message (response, TRUE, TRUE); @@ -142,6 +148,10 @@ void queue_error_and_display_on_LCD(int error_num) void queue_and_broadcast_sensor_alarm(int error_num) // FIXME - implement { + if (error_num == OK) { + return; + } + gchar* response = NULL; queue_error_and_get_text(&response, error_num); LCD_display_extended_message (response, TRUE, TRUE); |