summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-04 09:11:44 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-04 09:11:44 -0400
commit39d501c681b65b27e3bfebdb37517637429ea9c9 (patch)
treefd398af857cd32b65de6df63feaadb54db2a1f2d /parser.c
parentc8044753779bcf3bf2090e09465e47606db3de6f (diff)
added message broadcasts
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;