]> git.droids-corp.org - fpv.git/commitdiff
mainboard/xbee: display gps validity info when receiving a gps xbee msg
authorOlivier Matz <zer0@droids-corp.org>
Thu, 18 Sep 2014 17:55:55 +0000 (19:55 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 18 Sep 2014 17:55:55 +0000 (19:55 +0200)
mainboard/rc_proto.c

index 0e1b9cc9fb512a534506d9d772eb086f608def2d..ffbf3258f67dd3b64ed21b6184aeab2d315e971c 100644 (file)
@@ -782,9 +782,9 @@ int rc_proto_rx(struct xbee_recv_hdr *recvframe, unsigned len)
                                return -1;
 
                        stats.gps_pos_rx++;
-                       printf_P(PSTR("GPS received %"PRIu32" %"
+                       printf_P(PSTR("GPS received valid=%d %"PRIu32" %"
                                        PRIu32" %"PRIu32"\n"),
-                               rcmsg->latitude, rcmsg->longitude,
+                               rcmsg->valid, rcmsg->latitude, rcmsg->longitude,
                                rcmsg->altitude);
                        return 0;
                }