Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
doudar committed Dec 8, 2024
1 parent 88321c9 commit 499dcdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ void IRAM_ATTR SS2K::shiftUp() { // Handle the shift up interrupt IRAM_ATTR is
if (ss2k->deBounce()) {
if (!digitalRead(currentBoard.shiftUpPin)) { // double checking to make sure the interrupt wasn't triggered by emf
rtConfig->setShifterPosition(rtConfig->getShifterPosition() - 1 + userConfig->getShifterDir() * 2);
// Stop homing initiation
spinBLEServer.spinDownFlag = 0;
} else {
ss2k->lastDebounceTime = 0;
Expand All @@ -511,6 +512,7 @@ void IRAM_ATTR SS2K::shiftDown() { // Handle the shift down interrupt
if (ss2k->deBounce()) {
if (!digitalRead(currentBoard.shiftDownPin)) { // double checking to make sure the interrupt wasn't triggered by emf
rtConfig->setShifterPosition(rtConfig->getShifterPosition() + 1 - userConfig->getShifterDir() * 2);
// Stop homing initiation
spinBLEServer.spinDownFlag = 0;
} else {
ss2k->lastDebounceTime = 0;
Expand Down

0 comments on commit 499dcdd

Please sign in to comment.