 
 void loop() {
 	pins_busy = false;
-  for (uint8_t i =0 ; i < MAX ; i++) {
+  for (uint8_t i =0 ; i < pins_conf ; i++) {
 	 confpins[i]->update();
   };
   


#define MAX 24
ConfiguredPin* confpins[MAX];

#include "Adafruit_TLC5947.h"


  uint8_t i = 0;
  DEBUG("Max # of pins:");
  DEBUGLN(MAX);
  pins_conf = eeprom_read_byte((uint8_t*)&(_CV.pins_conf));
  for (i = 0; i < pins_conf; i++) {
    configureSlot(i);
  }
  programmingMode = false;
