|
|
@ -154,20 +154,20 @@ static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned l
|
|
|
|
const char* _label_pstr = PSTR(label); \
|
|
|
|
const char* _label_pstr = PSTR(label); \
|
|
|
|
if ((encoderPosition / ENCODER_STEPS_PER_MENU_ITEM) == _menuItemNr) { \
|
|
|
|
if ((encoderPosition / ENCODER_STEPS_PER_MENU_ITEM) == _menuItemNr) { \
|
|
|
|
lcd_implementation_drawmenu_ ## type ## _selected (_drawLineNr, _label_pstr , ## args ); \
|
|
|
|
lcd_implementation_drawmenu_ ## type ## _selected (_drawLineNr, _label_pstr , ## args ); \
|
|
|
|
}
|
|
|
|
} \
|
|
|
|
else {\
|
|
|
|
else { \
|
|
|
|
lcd_implementation_drawmenu_ ## type (_drawLineNr, _label_pstr , ## args ); \
|
|
|
|
lcd_implementation_drawmenu_ ## type (_drawLineNr, _label_pstr , ## args ); \
|
|
|
|
}\
|
|
|
|
} \
|
|
|
|
}\
|
|
|
|
} \
|
|
|
|
if (wasClicked && (encoderPosition / ENCODER_STEPS_PER_MENU_ITEM) == _menuItemNr) {\
|
|
|
|
if (wasClicked && (encoderPosition / ENCODER_STEPS_PER_MENU_ITEM) == _menuItemNr) { \
|
|
|
|
lcd_quick_feedback(); \
|
|
|
|
lcd_quick_feedback(); \
|
|
|
|
encoderRateMultiplierEnabled = true; \
|
|
|
|
encoderRateMultiplierEnabled = true; \
|
|
|
|
lastEncoderMovementMillis = 0; \
|
|
|
|
lastEncoderMovementMillis = 0; \
|
|
|
|
menu_action_ ## type ( args ); \
|
|
|
|
menu_action_ ## type ( args ); \
|
|
|
|
return;\
|
|
|
|
return; \
|
|
|
|
}\
|
|
|
|
} \
|
|
|
|
}\
|
|
|
|
} \
|
|
|
|
_menuItemNr++;\
|
|
|
|
_menuItemNr++; \
|
|
|
|
} while(0)
|
|
|
|
} while(0)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define MENU_ITEM_DUMMY() do { _menuItemNr++; } while(0)
|
|
|
|
#define MENU_ITEM_DUMMY() do { _menuItemNr++; } while(0)
|
|
|
|