 #include "PID_v1.h"
 //--------------------CONSTANTS-----------------------------------------
 #define MAXTEMPERATURE 250
+#define SECURITYTEMPERATURE 50
 #define UPDATEINTERVAL 500 //compute everything every half second
 
 const char* tempSensors[]= {"THERM0","THERM1","THERM2","THERM3","THERM4","THERM5"};

			updateSR();
		}
}
void setPIDtunings(double Kp, double Ki, double Kd) {
	kp = Kp;
	ki = Ki;

						//Do nothing
					break;
				}
				hotends[i].update(output);
			} //End if connected hotends
				if (hotends[i].state == 1)	//Heating done. Temperature Reached
				{
					manageLEDs(hotends[i].hotendState, i);
					if (hotends[i].tempCelsius <= SECURITYTEMPERATURE && connectedHotends[i] == 1)
					{
						securityBlink(i);
					}
				} else {					//Temperature not reached. Blinking...
					if (connectedHotends[i] == 1)
					{	
						blinkLeds(i);
					}
			}
		} //for end
		printTemperatures();
