From cd42a7749e6be1c484e58717d97d6c30963ea18f Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 14 May 2014 10:46:37 +0200 Subject: [PATCH] One more constant exported for Lua scripts: FULLSCALE, to avoid 10.24 hardcoded in Lua scripts... --- radio/src/lua.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/radio/src/lua.cpp b/radio/src/lua.cpp index dd78de586..daa3bd7ff 100644 --- a/radio/src/lua.cpp +++ b/radio/src/lua.cpp @@ -914,6 +914,7 @@ void luaInit() lua_register(L, "popupInput", luaPopupInput); // Push OpenTX constants + lua_registerint(L, "FULLSCALE", RESX); lua_registerint(L, "DBLSIZE", DBLSIZE); lua_registerint(L, "MIDSIZE", MIDSIZE); lua_registerint(L, "SMLSIZE", SMLSIZE);