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:44:11 +02:00
parent 60c925a721
commit 34090a1d3e
3 changed files with 9 additions and 5 deletions
+3
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);
}