unblank display only on button release
This commit is contained in:
parent
71969143a5
commit
70f0f6e34c
2
main.cpp
2
main.cpp
|
@ -86,7 +86,7 @@ ISR(TIMER2_OVF_vect)
|
||||||
|
|
||||||
void buttonHandler(uint8_t index, uint8_t type, void* data)
|
void buttonHandler(uint8_t index, uint8_t type, void* data)
|
||||||
{
|
{
|
||||||
if(display.getBlank())
|
if(display.getBlank() && type == Buttons::RELEASED)
|
||||||
{
|
{
|
||||||
display.setBlank(false);
|
display.setBlank(false);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue