fixed bug with adjusting ki in realtime.

This commit is contained in:
Bernhard Kubicek
2011-11-13 21:43:26 +01:00
parent 9980ceb4a3
commit c57906b627
4 changed files with 34 additions and 22 deletions

View File

@ -111,6 +111,13 @@ static unsigned long previous_millis_heater, previous_millis_bed_heater;
//=============================functions ============================
//===========================================================================
void updatePID()
{
#ifdef PIDTEMP
temp_iState_max = PID_INTEGRAL_DRIVE_MAX / Ki;
#endif
}
void manage_heater()
{
#ifdef USE_WATCHDOG