   }
   if (debug_state >= 0)
   {
-    debug_state = (debug_state + 1) % 10;
+    debug_state = (debug_state + 1) % 20;
   }
   
   int selector_pos = getSelectorGearPosition();

  calibration_state = (calibration_state + 1) % 20;
  if (calibration_state < 10)
  {
    digitalWrite(calibration_light, LOW);
  }
  else
  {
    digitalWrite(calibration_light, HIGH);
  }
}


boolean correct_positions[7];

// -1 if not blinking, 0..19 when blinking (0..9 = on, 10..19 = off)
int calibration_state = -1;

// 0..9 or -1 to disable debug; only show state on 0
int debug_state = 0;
