1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-17 13:25:20 +03:00

added case for UNIT_TEXT used by crossfire FM Sensor (#5724)

This commit is contained in:
tgreer 2018-02-25 00:18:23 +00:00 committed by Arne Schwabe
parent a35ffe16cc
commit 4b7f822848

View file

@ -232,6 +232,9 @@ void luaGetValueAndPush(lua_State* L, int src)
case UNIT_DATETIME:
luaPushTelemetryDateTime(L, telemetrySensor, telemetryItems[qr.quot]);
break;
case UNIT_TEXT:
lua_pushstring(L, telemetryItems[qr.quot].text);
break;
case UNIT_CELLS:
if (qr.rem == 0) {
luaPushCells(L, telemetrySensor, telemetryItems[qr.quot]);