unblank display only on button release
This commit is contained in:
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;
|
||||||
|
Reference in New Issue
Block a user