         debug(currentMillis, F("Button switch triggered - door blocked\r\n"));
         setLeds1(red, ledSolid);
         doorState = doorBlocked;
-swTrigger = HIGH;
+        swTrigger = HIGH;
         break;
       }
 

  if (debounceMillis >= debounceInterval) {
    debounceMillis = 0;

    debounce(switchTrigger, &swTrigger, &swTriggerDebounce);
    debounce(switchFront, &swFront, &swFrontDebounce);
    debounce(switchBack, &swBack, &swBackDebounce);
  }



        } else {
          debug(currentMillis, F("Button switch triggered - opening door\r\n"));
          initDrive(backward, accelProfileHigh);
          swTrigger = HIGH; // re-arm swTrigger
        }
        setLeds2(white, black, 3, ledBackward);
        doorState = doorOpening;
