[Taranis] It's now possible to use killEvents() on PAGE_LONG in Lua standalone scripts

This commit is contained in:
Bertrand Songis
2016-07-09 12:39:54 +02:00
parent 0da921df0d
commit 3faa81d799
+1 -1
View File
@@ -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