diff options
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); |