File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1575,9 +1575,11 @@ void buttonCheckTask(void *e)
1575
1575
if ((previousButtonRelease > 0 ) && (thisButtonRelease > 0 ) &&
1576
1576
((thisButtonRelease - previousButtonRelease) <= doubleTapInterval)) // Do we have a double tap?
1577
1577
{
1578
- // Do not register button taps until the system is displaying the menu
1579
- if (systemState == STATE_DISPLAY_SETUP)
1578
+ // Do not register button tap until the system is displaying the menu
1579
+ // If this platform doesn't have a display, then register the button tap
1580
+ if (systemState == STATE_DISPLAY_SETUP || present.display_type == DISPLAY_MAX_NONE)
1580
1581
{
1582
+ Serial.println (" Double tap" );
1581
1583
doubleTap = true ;
1582
1584
singleTap = false ;
1583
1585
previousButtonRelease = 0 ;
@@ -1587,8 +1589,9 @@ void buttonCheckTask(void *e)
1587
1589
else if ((thisButtonRelease > 0 ) &&
1588
1590
((millis () - thisButtonRelease) > doubleTapInterval)) // Do we have a single tap?
1589
1591
{
1590
- // Do not register button taps until the system is displaying the menu
1591
- if (systemState == STATE_DISPLAY_SETUP)
1592
+ // Do not register button tap until the system is displaying the menu
1593
+ // If this platform doesn't have a display, then register the button tap
1594
+ if (systemState == STATE_DISPLAY_SETUP || present.display_type == DISPLAY_MAX_NONE)
1592
1595
{
1593
1596
previousButtonRelease = 0 ;
1594
1597
thisButtonRelease = 0 ;
You can’t perform that action at this time.
0 commit comments