[ARM boards] Shift in CSV logs when no GPS fix

This commit is contained in:
bsongis
2015-07-18 13:18:19 +02:00
parent 0cf3aeef57
commit 1c86a16c84
+1 -1
View File
@@ -291,7 +291,7 @@ void writeLogs()
if (telemetryItem.gps.longitudeEW && telemetryItem.gps.latitudeNS)
f_printf(&g_oLogFile, "%03d.%04d%c,%03d.%04d%c,", telemetryItem.gps.longitude_bp, telemetryItem.gps.longitude_ap, telemetryItem.gps.longitudeEW, telemetryItem.gps.latitude_bp, telemetryItem.gps.latitude_ap, telemetryItem.gps.latitudeNS);
else
f_printf(&g_oLogFile, "-,-");
f_printf(&g_oLogFile, "-,-,");
}
else if (sensor.prec == 2) {
div_t qr = div(telemetryItem.value, 100);