diff options
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -2222,19 +2222,20 @@ static int Go_trig_source46(gchar** response, int channel, char *parameter,char switch (command_type) { case command_withparam: if (!strcmp(parameter,"int") || !strcmp(parameter,"internal")) { - Set_Trig_Source(channel,source_internal); + return Set_Trig_Source(channel,source_internal); } else if (!strcmp(parameter,"ext") || !strcmp(parameter,"external")) { - Set_Trig_Source(channel,source_external); + return Set_Trig_Source(channel,source_external); + } else if (!strcmp(parameter,"ext2") || !strcmp(parameter,"external2")) { + return Set_Trig_Source(channel,source_external2); } else if (!strcmp(parameter,"man") || !strcmp(parameter,"manual")) { - Set_Trig_Source(channel,source_manual); + return Set_Trig_Source(channel,source_manual); } else if (!strcmp(parameter,"hold")) { - Set_Trig_Source(channel,source_hold); + return Set_Trig_Source(channel,source_hold); } else if (!strcmp(parameter,"imm") || !strcmp(parameter,"immediate")) { - Set_Trig_Source(channel,source_immediate); + return Set_Trig_Source(channel,source_immediate); } else { return SyntaxError; } - return OK; break; case query_simple: @@ -2242,6 +2243,8 @@ static int Go_trig_source46(gchar** response, int channel, char *parameter,char return query_string(response, "INT"); } else if (globals.ChannelState[channel].trigger_source==source_external) { return query_string(response, "EXT"); + } else if (globals.ChannelState[channel].trigger_source==source_external2) { + return query_string(response, "EXT2"); } else if (globals.ChannelState[channel].trigger_source==source_manual) { return query_string(response, "MAN"); } else if (globals.ChannelState[channel].trigger_source==source_hold) { |