     {
       attach(servo[i], &PORTB, 1<<(i-6));
     }
-    else if(i < 20)
+    else if(i < 18)
     {
       attach(servo[i], &PORTC, 1<<(i-12));
     }


// Servos
int active_servos = 1;
int const NUM_SERVOS = 20;
Servo* servo[NUM_SERVOS];
int pattern = 1;


 
  DDRD = B11111100;
  DDRB = B00111111;
  DDRC = B00111111;
  
 // Servo s = new Servo();
  
