mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 12:25:12 +03:00
RAS refactoring
This commit is contained in:
parent
58f2295484
commit
6d34de7914
9 changed files with 194 additions and 152 deletions
|
@ -672,8 +672,8 @@ This is just a hardware pass/fail measure and does not represent the quality of
|
|||
*/
|
||||
static int luaGetRAS(lua_State * L)
|
||||
{
|
||||
if (IS_RAS_VALUE_VALID()) {
|
||||
lua_pushinteger(L, telemetryData.swr.value);
|
||||
if (!IS_RAS_VALUE_VALID(telemetryData.xjtVersion)) {
|
||||
lua_pushinteger(L, telemetryData.swrInternal.value);
|
||||
}
|
||||
else {
|
||||
lua_pushnil(L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue