display message flags in dump_i2c
authorOlivier Matz <zer0@droids-corp.org>
Tue, 9 Sep 2014 17:04:23 +0000 (19:04 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Tue, 9 Sep 2014 17:49:31 +0000 (19:49 +0200)
mainboard/commands.c

index d0ff2a1..558e0b6 100644 (file)
@@ -2296,6 +2296,8 @@ static void cmd_dump_i2c_parsed(void *parsed_result, void *data)
                memcpy(&imu, &imuboard_status, sizeof(imu));
                IRQ_UNLOCK(irq_flags);
 
+               printf_P(PSTR("flags=%x\n"), imu.flags);
+
                if (imu.flags & I2C_IMUBOARD_STATUS_GPS_OK) {
                        printf_P(PSTR("GPS lat=%"PRIi32" long=%"PRIi32
                                        " alt=%"PRIi32"\n"),