Projectkk2glider/gps misc fixes (#3970)
* Fixed Lua GPS date (year is now kept with four digits) * * GPS year displayed with two digits * GPS date/time handling fixes
This commit is contained in:
committed by
Bertrand Songis
parent
a332f7a872
commit
5ba14734cb
+1
-4
@@ -312,10 +312,7 @@ void logsWrite()
|
||||
}
|
||||
}
|
||||
else if (sensor.unit == UNIT_DATETIME) {
|
||||
if (telemetryItem.datetime.datestate)
|
||||
f_printf(&g_oLogFile, "%4d-%02d-%02d %02d:%02d:%02d,", telemetryItem.datetime.year, telemetryItem.datetime.month, telemetryItem.datetime.day, telemetryItem.datetime.hour, telemetryItem.datetime.min, telemetryItem.datetime.sec);
|
||||
else
|
||||
f_printf(&g_oLogFile, ",");
|
||||
f_printf(&g_oLogFile, "%4d-%02d-%02d %02d:%02d:%02d,", telemetryItem.datetime.year, telemetryItem.datetime.month, telemetryItem.datetime.day, telemetryItem.datetime.hour, telemetryItem.datetime.min, telemetryItem.datetime.sec);
|
||||
}
|
||||
else if (sensor.prec == 2) {
|
||||
div_t qr = div(telemetryItem.value, 100);
|
||||
|
||||
Reference in New Issue
Block a user