From 3faa81d799464f62290ab0f8d8ab03b5ca3adb80 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 9 Jul 2016 12:39:54 +0200 Subject: [PATCH] [Taranis] It's now possible to use killEvents() on PAGE_LONG in Lua standalone scripts --- radio/src/lua/lua_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/lua/lua_api.h b/radio/src/lua/lua_api.h index 38e087e2f..826e782c9 100644 --- a/radio/src/lua/lua_api.h +++ b/radio/src/lua/lua_api.h @@ -127,7 +127,7 @@ extern uint16_t maxLuaInterval; extern uint16_t maxLuaDuration; #if defined(PCBTARANIS) - #define IS_MASKABLE(key) ((key) != KEY_EXIT && (key) != KEY_ENTER && (key) != KEY_PAGE) + #define IS_MASKABLE(key) ((key) != KEY_EXIT && (key) != KEY_ENTER && ((luaState & INTERPRETER_RUNNING_STANDALONE_SCRIPT) || (key) != KEY_PAGE)) #elif defined(PCBHORUS) #define IS_MASKABLE(key) ((key) != KEY_EXIT && (key) != KEY_ENTER) #endif