summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index c1b1fd9..ef1d43a 100644
--- a/parser.c
+++ b/parser.c
@@ -21,6 +21,8 @@ END DESCRIPTION **********************************************************/
#include <glib/gprintf.h>
+extern void send_message(gchar* message);
+
//STATICS
static int query_int (gchar** response, int n);
static int query_min_max_float (gchar** response, char *parameter, float min_val, float max_val);
@@ -4194,14 +4196,14 @@ static int Go_broadcast_103(gchar** response, int channel, char *parameter,char
switch (command_type) {
case command_withparam:
broadcast_str = g_strdup_printf ("broadcast msg: %s\r\n> ", parameter);
- g_printf ("%s", broadcast_str);
+ send_message(broadcast_str);
g_free (broadcast_str);
return OK;
break;
case command_param_units:
broadcast_str = g_strdup_printf ("broadcast msg: %s %s\r\n> ", parameter, units);
- g_printf ("%s", broadcast_str);
+ send_message(broadcast_str);
g_free (broadcast_str);
return OK;
break;