1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-18 05:45:21 +03:00

Fix: former Lua telemetry fields were not exported correctly (tx-voltage, clock and timers1-3)

This commit is contained in:
Damjan Adamic 2015-08-22 20:41:16 +02:00
parent 60c925a721
commit 34090a1d3e
3 changed files with 9 additions and 5 deletions

View file

@ -149,6 +149,9 @@ static void luaGetValueAndPush(int src)
lua_pushinteger(L, (int)0);
}
}
else if (src == MIXSRC_TX_VOLTAGE) {
lua_pushnumber(L, float(value)/10.0);
}
else {
lua_pushinteger(L, value);
}