 void setup(void)
 {
 	Serial.begin(115200);
-	//Wait until the serial port is available (useful only for the leonardo)
-	while(!Serial)
-	{}
-	Serial.println(F("Arduino setup"));
+	//Wait until the serial port is available (useful only for the Leonardo)
+	#if defined (__AVR_ATmega32U4__)
+		while(!Serial)
+		{}
+	#elif defined(__PIC32MX__)
+		delay(1000);
+	#endif
+
+    Serial.println(F("Arduino setup"));
 	Serial.println(F("Set line ending to newline to send data from the serial monitor"));
 
 	/**

          lib_aci_change_timing_GAP_PPCP(); // change the timing on the link as specified in the nRFgo studio -> nRF8001 conf. -> GAP.
                                            // Used to increase or decrease bandwidth
          timing_change_done = true;
        }
        break;


  Serial.print("\n");
  while(1);
}
/*
Description:

