--- a/brewco/pid.c Tue Dec 22 21:07:14 2015 +0100 +++ b/brewco/pid.c Sat Dec 26 21:45:44 2015 +0100 @@ -66,6 +66,11 @@ pid->ITerm = pid->outMax; else if (pid->ITerm < pid->outMin) pid->ITerm = pid->outMin; + /* + * If turned to manual, turn output off. + */ + if (Mode == P_MANUAL) + *pid->myOutput = pid->outMin; } pid->inAuto = newAuto; }