diff options
author | root <root@avtech.domain.avtechpulse.com> | 1970-01-01 09:47:05 +0900 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1970-01-01 09:47:05 +0900 |
commit | 4e7eae444566b943459200232bda5e52e482cb08 (patch) | |
tree | 93a0adab952cd81299cc1b15d373cd6a34d33b38 /parser.c | |
parent | e96bfa21e1e6951c0e23144321cffe29c8b2bd67 (diff) |
add support for double-external-trigger mode in KMPF
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) { |