Also consume longpress in lcd_consume_click()

This commit is contained in:
Yuri D'Elia 2022-09-30 14:29:37 +02:00 committed by 3d-gussner
parent 8ae499c352
commit ae1c88823c

View File

@ -204,11 +204,12 @@ private:
extern void lcd_set_custom_characters(void);
extern void lcd_set_custom_characters_nextpage(void);
//! @brief Consume click event
//! @brief Consume click and longpress event
inline void lcd_consume_click()
{
lcd_button_pressed = 0;
lcd_buttons &= 0xff^EN_C;
lcd_longpress_trigger = 0;
}