diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-04 09:11:44 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-04 09:11:44 -0400 |
commit | 39d501c681b65b27e3bfebdb37517637429ea9c9 (patch) | |
tree | fd398af857cd32b65de6df63feaadb54db2a1f2d /parser.c | |
parent | c8044753779bcf3bf2090e09465e47606db3de6f (diff) |
added message broadcasts
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |