altos/telefire: Report valid channels instead of valid pins
authorKeith Packard <keithp@keithp.com>
Mon, 15 Oct 2012 06:04:44 +0000 (23:04 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 15 Oct 2012 06:04:44 +0000 (23:04 -0700)
Now that pins don't match channels 1:1, make sure that the report back
to the LCO names the channels instead of the pin numbers.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_pad.c

index 36905136394d2e0494283fdc64e7ac7d1bc74abb..6cec98ab6e52bcc22ce3d68ee21d8579ae521973 100644 (file)
@@ -271,7 +271,7 @@ ao_pad(void)
 
                        query.tick = ao_time();
                        query.box = ao_pad_box;
-                       query.channels = AO_PAD_ALL_PINS;
+                       query.channels = AO_PAD_ALL_CHANNELS;
                        query.armed = ao_pad_armed;
                        PRINTD ("query tick %d box %d channels %02x arm %d arm_status %d igniter %d,%d,%d,%d\n",
                                query.tick, query.box, query.channels, query.armed,