From 499dcddc7fc3c86e37f43485182206e40cc3aaab Mon Sep 17 00:00:00 2001 From: Anthony Doud Date: Sun, 8 Dec 2024 06:21:15 -0600 Subject: [PATCH] added comment --- src/Main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Main.cpp b/src/Main.cpp index 37872781..b495a40b 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -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; @@ -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;