From: Frank Mori Hess Date: Sat, 24 May 2003 21:15:06 +0000 (+0000) Subject: use CR_EDGE and CR_INVERT constants instead of magic numbers X-Git-Tag: r0_7_21~139 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fa4100f9a3ce2f8e7fb9a6c9d68a2b24f3455f34;p=comedilib.git use CR_EDGE and CR_INVERT constants instead of magic numbers --- diff --git a/demo/receiver.c b/demo/receiver.c index 1fdac76..be71a86 100644 --- a/demo/receiver.c +++ b/demo/receiver.c @@ -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;