diff options
-rw-r--r-- | parser.c | 42 |
1 files changed, 0 insertions, 42 deletions
@@ -116,7 +116,6 @@ static int Go_avrq_ampl(gchar** response, int channel, char *parameter,char *uni static int Go_cal_100(gchar** response, int channel, char *parameter,char *units,int command_type); static int Go_cal_interval_101(gchar** response, int channel, char *parameter,char *units,int command_type); static int Go_eprom_reset_102(gchar** response, int channel, char *parameter,char *units,int command_type); -static int Go_broadcast_103(gchar** response, int channel, char *parameter,char *units,int command_type); static int Parser_id_word(char *id_me, int *channel, int *with_id_code) { @@ -352,8 +351,6 @@ static int Parser_id_word(char *id_me, int *channel, int *with_id_code) id_code = 107; } else if (!strcmp(id_me,"reset") || !strcmp(id_me,"res")) { id_code = 108; - } else if (!strcmp(id_me,"broadcast") ) { //FIXME - id_code = 109; } else { id_code = 9999; } @@ -479,7 +476,6 @@ static int Parser_find_commands(int commands[], int command_depth) {88,107|optional}, /* calibration:all - 100 */ {88,37}, /* calibration:frequency - 101 */ {23,57,108}, /* diag:eprom:reset - 102 */ - {109} /* broadcast - 103 */ }; @@ -1044,9 +1040,6 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer case 102: error_num=Go_eprom_reset_102(&response,channel,parameter,units,command_type); break; - case 103: - error_num=Go_broadcast_103(&response,channel,parameter,units,command_type); - break; case 9999: // was only whitespace, ignore @@ -4015,38 +4008,3 @@ static int Go_cal_interval_101(gchar** response, int channel, char *parameter,ch return ThisShouldntHappen; } - - -static int Go_broadcast_103(gchar** response, int channel, char *parameter,char *units,int command_type) -{ -#ifdef DEBUG_ON - - gchar *broadcast_str = NULL; - - switch (command_type) { - case command_withparam: - broadcast_str = g_strdup_printf ("broadcast msg: %s\r\n> ", parameter); - 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); - send_message(broadcast_str); - g_free (broadcast_str); - return OK; - break; - - default: - return SyntaxError; - break; - } - - return ThisShouldntHappen; - -#else - - return Unrecognized; -#endif -} |