ao-telem: Show all 24 bits of GPS altitude data
[fw/altos] / ao-tools / ao-telem / ao-telem.c
index ee60712c40f6c969fde407bf2f27e97bd43d3217..02d53ff32cacf571bb0e25474cb27ed3227cc895 100644 (file)
@@ -115,7 +115,7 @@ main (int argc, char **argv)
                                                (telem.location.flags & (1 << 6)) ? ",date" : "",
                                                (telem.location.flags & (1 << 7)) ? ",course" : "");
                                        printf (" alt %5d lat %12.7f lon %12.7f",
-                                               telem.location.altitude,
+                                               AO_TELEMETRY_LOCATION_ALTITUDE(&telem.location),
                                                telem.location.latitude / 1e7,
                                                telem.location.longitude / 1e7);
                                        if ((telem.location.flags & (1 << 6)) != 0) {