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
@@ -157,7 +157,7 @@ static void luaPushLatLon(TelemetrySensor & telemetrySensor, TelemetryItem & tel
|
||||
|
||||
static void luaPushTelemetryDateTime(TelemetrySensor & telemetrySensor, TelemetryItem & telemetryItem)
|
||||
{
|
||||
luaPushDateTime(L, telemetryItem.datetime.year + 2000, telemetryItem.datetime.month, telemetryItem.datetime.day,
|
||||
luaPushDateTime(L, telemetryItem.datetime.year, telemetryItem.datetime.month, telemetryItem.datetime.day,
|
||||
telemetryItem.datetime.hour, telemetryItem.datetime.min, telemetryItem.datetime.sec);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user