File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -1572,9 +1572,7 @@ void buttonCheckTask(void *e)
1572
1572
}
1573
1573
1574
1574
// If user presses the center button or right, act as double tap (select)
1575
- // if (buttonLastPressed() == gpioExpander_center || buttonLastPressed() == gpioExpander_right)
1576
- if (buttonLastPressed () == gpioExpander_center ||
1577
- buttonLastPressed () == gpioExpander_up) // TODO remove, v02 hardware patch
1575
+ if (buttonLastPressed () == gpioExpander_center || buttonLastPressed () == gpioExpander_right)
1578
1576
{
1579
1577
doubleTap = true ;
1580
1578
singleTap = false ;
@@ -1734,17 +1732,14 @@ void buttonCheckTask(void *e)
1734
1732
if (online.gpioExpander == true )
1735
1733
{
1736
1734
// React to five different buttons
1737
- // if (buttonLastPressed() == gpioExpander_up || buttonLastPressed() == gpioExpander_left)
1738
- if (buttonLastPressed () == gpioExpander_left ||
1739
- buttonLastPressed () == gpioExpander_down) // TODO remove v02 hardware patch
1735
+ if (buttonLastPressed () == gpioExpander_up || buttonLastPressed () == gpioExpander_left)
1740
1736
{
1741
1737
if (setupSelectedButton == 0 ) // Top reached?
1742
1738
setupSelectedButton = setupButtons.size () - 1 ;
1743
1739
else
1744
1740
setupSelectedButton--;
1745
1741
}
1746
- // else if (buttonLastPressed() == gpioExpander_down)
1747
- else if (buttonLastPressed () == gpioExpander_right) // TODO remove v02 hardware patch
1742
+ else if (buttonLastPressed () == gpioExpander_down)
1748
1743
{
1749
1744
setupSelectedButton++;
1750
1745
if (setupSelectedButton == setupButtons.size ()) // Limit reached?
You can’t perform that action at this time.
0 commit comments