summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:47:05 +0900
committerroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:47:05 +0900
commit4e7eae444566b943459200232bda5e52e482cb08 (patch)
tree93a0adab952cd81299cc1b15d373cd6a34d33b38 /parser.c
parente96bfa21e1e6951c0e23144321cffe29c8b2bd67 (diff)
add support for double-external-trigger mode in KMPF
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/parser.c b/parser.c
index 434fca6..c978f3c 100644
--- a/parser.c
+++ b/parser.c
@@ -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) {