altos: fix ao_pad debug output for query command
authorKeith Packard <keithp@keithp.com>
Wed, 29 Aug 2012 18:22:02 +0000 (11:22 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 29 Aug 2012 18:22:02 +0000 (11:22 -0700)
Igniter status is an array these days.

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

index 94dc578720b6e145fd716d34cc1bbecd5862e8e4..cd901aa3014d5f6c14e0b2a74df99314f2af8d25 100644 (file)
@@ -207,9 +207,13 @@ ao_pad(void)
                        query.box = ao_pad_box;
                        query.channels = AO_PAD_ALL_PINS;
                        query.armed = ao_pad_armed;
-                       PRINTD ("query tick %d box %d channels %02x arm %d arm_status %d igniter %d\n",
+                       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,
-                               query.arm_status, query.igniter_status);
+                               query.arm_status,
+                               query.igniter_status[0],
+                               query.igniter_status[1],
+                               query.igniter_status[2],
+                               query.igniter_status[3]);
                        ao_radio_cmac_send(&query, sizeof (query));
                        break;
                case AO_LAUNCH_FIRE: