Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz committed Oct 1, 2024
1 parent 2f51356 commit 36a878f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/standalone_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void luaStandaloneInit()
lsStandaloneTrace.script = "lua_newstate(scripts)";
lsStandalone = lua_newstate(tracer_alloc, &lsStandaloneTrace); //we use tracer allocator
#else
lsStandalone = lua_newstate(l_alloc, nullptr); //we use Lua default allocator
lsStandalone = luaL_newstate(); //we use Lua default allocator
#endif
if (lsStandalone) {
// install our panic handler
Expand Down
3 changes: 3 additions & 0 deletions radio/src/lua/lua_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
// prevent C++ code to be included from lua.h
#include "rtos.h"

extern "C" {
#include "lua.h"
};

#include "dataconstants.h"
#include "edgetx_types.h"
Expand Down
3 changes: 1 addition & 2 deletions radio/src/lua/lua_lvgl_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@

//-----------------------------------------------------------------------------

static int pcallcont (lua_State *L) {
int status = lua_getctx(L, NULL);
static int pcallcont (lua_State *L, int status, lua_KContext extra) {
return status == LUA_OK;
}

Expand Down

0 comments on commit 36a878f

Please sign in to comment.