diff options
author | root <root@avtech.domain.avtechpulse.com> | 2000-01-01 00:01:25 +0900 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 2000-01-01 00:01:25 +0900 |
commit | f5ad3b19a6af55e1eb282e9cdac15191340a8729 (patch) | |
tree | 7b6ac7281c7210bd81f38a93bc3ea4350913f59d /instr-daemon.c | |
parent | 1a41781b6b17630c8456a9e3cfa8d201c87324cd (diff) |
toggle trigger at boot, if specified, for IL710
Diffstat (limited to 'instr-daemon.c')
-rw-r--r-- | instr-daemon.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/instr-daemon.c b/instr-daemon.c index 63bc161..1612e9b 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -266,6 +266,17 @@ int main(int argc, char **argv) Main_Rst(); + for (i=0; i<max_channels; i++) { + if (globals.Flash.toggle_trig_at_boot[i]) { + // trigger IL710 twice to initialize it + Set_Output_State(i,output_on); + Set_Trig_Source(i,source_immediate); + Set_Trig_Source(i,source_immediate); + Set_Trig_Source(i,source_internal); + Set_Output_State(i,output_off); + } + } + //register stdin channel stdinChannel = g_io_channel_unix_new(0); if(stdinChannel == NULL) { |