unblank display only on button release

This commit is contained in:
uvos 2023-10-12 15:35:11 +02:00
parent 71969143a5
commit 70f0f6e34c

View File

@ -86,7 +86,7 @@ ISR(TIMER2_OVF_vect)
void buttonHandler(uint8_t index, uint8_t type, void* data)
{
if(display.getBlank())
if(display.getBlank() && type == Buttons::RELEASED)
{
display.setBlank(false);
return;