       if (millis()>ballReleaseTimer[i]){ //If enough time has passed
         digitalWrite(solenoidPins[i],LOW); //Deactivate the solenoid: close the passage
         ballReleasing[i]=0; //Indicate that the ball is no longer being released
-#ifdef DEBUG
+#if DEBUG==1
         Serial.print("Deactivating solenoid: ");
         Serial.println(i);
 #endif


// Parameters
/*******************************************************************************************/
#define DEBUG //Defining DEBUG turns ON debugging messages

#define commsTimeout 200 //The maximum time that a received serial command can take, in mS

#define ballReleaseTime 100 //The time that the solenoid needs to be activated for to release a ball, in mS

#define angleLowest 30 //The minimum allowable angle
#define angleHighest 150 //The maximum allowable angle

  /*******************************************************************************************/
  Serial.begin(9600);
  Serial.setTimeout(commsTimeout);
#if DEBUG==1
  Serial.println("Arduino Start");
#endif

