From 6d023eaf845b9d8dc6d7fe4a96e024b742ba27d4 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:15:18 -0500 Subject: ignore non-errors --- error_utils.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'error_utils.c') 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); -- cgit