1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 11:59:50 +03:00

[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

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