       break;
     }
   }
+
+  disableMotor();
 }
 
 // Stop door motion


  // 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 ) {

const int STEPS_PER_REVOLUTION              = 200;
const int MOTOR_SPEED_STEPS_PER_SECOND      = ( MOTOR_MAX_RPMS / 60 ) * STEPS_PER_REVOLUTION;
const int MOTOR_ACCEL_STEPS_PER_SEC_PER_SEC = 50;
// Disable motor driver when stopped. Decreases power consumption and heat from motor. 0 = no, 1 = yes.
const int MOTOR_DISABLE_ON_STOP             = 1;

// Number of ticks beyond threshold to wait before changing door position
const int LIGHT_THRESH_TICKS_TO_CHANGE      = 100;
