From 0d574a512ef3fe4f0751d0f3c495e347975765cf Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 21:16:40 -0500 Subject: enable broadcast alarms --- error_utils.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'error_utils.c') diff --git a/error_utils.c b/error_utils.c index a92c8dd..d4c48a3 100644 --- a/error_utils.c +++ b/error_utils.c @@ -143,8 +143,9 @@ void queue_error_and_display_on_LCD(int error_num) g_free (response); } +extern void send_message(gchar* message); -void queue_and_broadcast_sensor_alarm(int error_num) // FIXME - implement +void queue_and_broadcast_sensor_alarm(int error_num) { if (error_num == OK) { return; @@ -153,6 +154,11 @@ void queue_and_broadcast_sensor_alarm(int error_num) // FIXME - implement gchar* response = NULL; queue_error_and_get_text(&response, error_num); LCD_display_extended_message (response, TRUE, TRUE); + + gchar *broadcast_str = g_strdup_printf ("%s\r\n> ", response); + send_message(broadcast_str); + g_free (broadcast_str); + g_free (response); } -- cgit