summaryrefslogtreecommitdiff
path: root/error_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'error_utils.c')
-rw-r--r--error_utils.c33
1 files changed, 6 insertions, 27 deletions
diff --git a/error_utils.c b/error_utils.c
index 56d515a..68c8b93 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -15,8 +15,11 @@ END DESCRIPTION **********************************************************/
#include <glib/gprintf.h>
#include "globals.h"
#include "dummy_functions.h"
+#include "lcd.h"
+
/*** EndHeader */
+/* FIXME */
int Error_Screen=NO;
void set_gpib_error_flags (int error_num);
@@ -88,7 +91,7 @@ void queue_error(int error_num)
/*----------------------------------------------------------------------------------------------------------*/
void queue_error_and_get_text(gchar** response, int error_num)
{
- response[0]=0;
+ *response[0]=0;
if (error_num == OK) {
return;
}
@@ -100,7 +103,7 @@ void queue_error_and_get_text(gchar** response, int error_num)
/*----------------------------------------------------------------------------------------------------------*/
void queue_error_from_parser(gchar** response, int error_num)
{
- response[0]=0;
+ *response[0]=0;
if (error_num == OK) {
return;
}
@@ -128,32 +131,8 @@ void queue_error_and_display_on_LCD(int error_num);
void queue_error_and_display_on_LCD(int error_num)
{
gchar* response = NULL;
- char row0[LCD_cols+1];
- char row1[LCD_cols+1];
- char row2[LCD_cols+1];
-
- char Press_Change_Message[max_output_length]; //!!!
-
- if (error_num == OK) {
- return;
- }
queue_error_and_get_text(&response, error_num);
-
- memset(row0,0,LCD_cols+1);
- memset(row1,0,LCD_cols+1);
- memset(row2,0,LCD_cols+1);
-
- Error_Screen=YES;
-
- break_up_string (response, LCD_cols, row0, row1, row2);
-
- LCD_clear();
- LCD_write(0,0,row0);
- LCD_write(1,0,row1);
- LCD_write(2,0,row2);
- LCD_write(3,0,Press_Change_Message);
-
- g_free(response);
+ LCD_display_error_message (response);
}