chore(radio): remove hardware definitions present in JSON (#6437)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
co-authored by
philmoz
parent
2ca8e3e7b6
commit
df981597c6
@@ -1697,12 +1697,13 @@ Stops key state machine. See [Key Events](../key_events.md) for the detailed des
|
||||
*/
|
||||
static int luaKillEvents(lua_State * L)
|
||||
{
|
||||
#if defined(KEYS_GPIO_REG_MENU)
|
||||
#define IS_MASKABLE(key) \
|
||||
((key) != KEY_EXIT && (key) != KEY_ENTER && \
|
||||
((scriptInternalData[0].reference == SCRIPT_STANDALONE) || \
|
||||
(key) != KEY_PAGEDN))
|
||||
#if !defined(COLORLCD)
|
||||
#define IS_STANDALONE() (scriptInternalData[0].reference == SCRIPT_STANDALONE)
|
||||
#define IS_MASKABLE(key) \
|
||||
((key) != KEY_EXIT && (key) != KEY_ENTER && \
|
||||
(!keyIsSupported(KEY_MENU) || (IS_STANDALONE() || ((key) != KEY_PAGEDN))))
|
||||
#else
|
||||
#define IS_STANDALONE() (false)
|
||||
#define IS_MASKABLE(key) ((key) != KEY_EXIT && (key) != KEY_ENTER)
|
||||
#endif
|
||||
|
||||
@@ -1714,6 +1715,9 @@ static int luaKillEvents(lua_State * L)
|
||||
luaEmptyEventBuffer();
|
||||
}
|
||||
return 0;
|
||||
|
||||
#undef IS_MASKABLE
|
||||
#undef IS_STANDALONE
|
||||
}
|
||||
|
||||
#if LCD_DEPTH > 1 && !defined(COLORLCD)
|
||||
|
||||
Reference in New Issue
Block a user