chores: update to LUA 5.3 (#4203)

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
Raphael Coeffic
2024-12-24 12:45:06 +10:00
committed by GitHub
co-authored by Peter Feerick philmoz
parent 28b0cb9e71
commit 47cba2211f
87 changed files with 9660 additions and 6926 deletions
+6
View File
@@ -26,6 +26,7 @@
#define SWAP_DEFINED
#include "edgetx.h"
#include "lua/lua_states.h"
#define MIXSRC_THR (MIXSRC_FIRST_STICK + inputMappingGetThrottle())
#define MIXSRC_TRIMTHR (MIXSRC_FIRST_TRIM + inputMappingGetThrottle())
@@ -189,6 +190,11 @@ TEST(Lua, Switches)
{
luaExecStr("if MIXSRC_SA == nil then error('failed') end");
luaExecStr("if MIXSRC_SB == nil then error('failed') end");
#if defined(SURFACE_RADIO)
luaExecStr("if getSwitchIndex('St-') == nil then error('failed') end");
#else
luaExecStr("if getSwitchIndex('Rud-') == nil then error('failed') end");
#endif
}
TEST(Lua, testLegacyNames)