reset safety timer everytime lcd clicked

This commit is contained in:
Robert Pelnar 2018-08-08 19:33:44 +02:00
parent ca25ec90bd
commit 2f17997622

View file

@ -770,6 +770,7 @@ void lcd_buttons_update(void)
lcd_timeoutToStatus.start(); lcd_timeoutToStatus.start();
if (!buttonBlanking.running() || buttonBlanking.expired(BUTTON_BLANKING_TIME)) { if (!buttonBlanking.running() || buttonBlanking.expired(BUTTON_BLANKING_TIME)) {
buttonBlanking.start(); buttonBlanking.start();
safetyTimer.start();
if ((lcd_button_pressed == 0) && (lcd_long_press_active == 0)) if ((lcd_button_pressed == 0) && (lcd_long_press_active == 0))
{ {
longPressTimer.start(); longPressTimer.start();