1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 12:55:12 +03:00

Compilation fix

This commit is contained in:
Bertrand Songis 2019-09-10 14:06:37 +02:00
parent 36ecf77639
commit e4b894b58e
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
2 changed files with 13 additions and 2 deletions

View file

@ -209,8 +209,9 @@ static void luaPushLatLon(lua_State* L, TelemetrySensor & telemetrySensor, Telem
lua_pushtablenumber(L, "lon", telemetryItem.gps.longitude * 0.000001);
lua_pushtablenumber(L, "pilot-lon", telemetryItem.pilotLongitude * 0.000001);
if (telemetryItem.hasReceiveTime())
lua_pushtableinteger(L, "delay", telemetryItem.getDelaySinceLastValue());
int8_t delay = telemetryItem.getDelaySinceLastValue();
if (delay >= 0)
lua_pushtableinteger(L, "delay", delay);
else
lua_pushtablenil(L, "delay");
}