 
 unsigned long ms, motorStartTime, manualModeReleaseTime;
 bool outputRequired = false;
+bool manualModeLocked = false;
+bool openTimeComplete = false;
+bool closeTimeComplete = false;
 
 int currentMode = modeWait;
 int previousMode = modeWait;

  digitalWrite(pinOpenBtnOut, LOW);
  digitalWrite(pinCloseBtnOut, HIGH);
  digitalWrite(pinParkingBrakeOut, HIGH);
}


void sendStop() {
  log("send : stop!");

  ms = millis();

  pollInput();
  updateTimers();
  updateMode();
  sendOutput();

