From 950c56ac3c1e5651f54965700f385076ab63c8ea Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 24 Jul 2014 18:17:43 +0200 Subject: [PATCH] fix gps message when position is not correct --- i2c_protocol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/i2c_protocol.c b/i2c_protocol.c index 319da9e..cdb7399 100644 --- a/i2c_protocol.c +++ b/i2c_protocol.c @@ -82,6 +82,7 @@ static void i2c_send_status(void) gps_get_pos(&gps_pos); IRQ_UNLOCK(irq_flags); + ans.flags = 0; if (gps_pos_valid(&gps_pos)) { ans.flags |= IMUBOARD_STATUS_GPS_OK; ans.latitude = gps_pos.latitude; -- 2.20.1