 
   // Determine if door should move up or down
   if ( LightCurrent > LightThreshUp || totalseconds(Now) > ClockThreshUp.totalseconds() ) {
-
+    
     // See if we could potentially change door position
     // If not, there's nothing else to do here
     if ( DoorPosition == DOOR_POSITION_UP ) {
       return;
     }
-
+  
     LightThreshTicks++;
     updateLCD();
     if ( LightThreshTicks > LIGHT_THRESH_TICKS_TO_CHANGE ) {

  Serial.print(':');
  Serial.print(ClockThreshDown.seconds(), DEC);

  Serial.println();
}
#endif

  // Set the motor target position i.e. number of steps to move
  Motor.move(revolutions * (long) STEPS_PER_REVOLUTION);

  enableMotor();

  // Start stepping motor
  while (true) {

    // Handle buttons to allow abort
    handleButton();

    // Eject from loop if we stopped the door manually via handleButton() calling stopDoor()
    if ( DoorDirection == DOOR_STATIONARY ) {
      // Tell AccelStepper to stop and reset its position counter
      Motor.setCurrentPosition(0);
      // This break is redundant because Motor.run() will return false past here
      break;
    }

