use CR_EDGE and CR_INVERT constants instead of magic numbers
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 24 May 2003 21:15:06 +0000 (21:15 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 24 May 2003 21:15:06 +0000 (21:15 +0000)
demo/receiver.c

index 1fdac76ea355cb762b5c9043cc0f31b57f257841..be71a86f389ad0e6f197ab25040c1b17a1937a40 100644 (file)
@@ -212,7 +212,7 @@ void prepare_cmd(comedi_t *dev,comedi_cmd *cmd)
        cmd->start_arg =        0;
 
        cmd->scan_begin_src =   TRIG_EXT;
-       cmd->scan_begin_arg =   (1<<31)|(1<<30)|pin_clk;
+       cmd->scan_begin_arg =   CR_EDGE | CR_INVERT | pin_clk;
 
 #if 1
        cmd->convert_src =      TRIG_TIMER;