Avoid cooler start on 0 target

parent 5ab3b03a
......@@ -774,6 +774,11 @@ float get_pid_output(int h) {
#if ENABLED(PIDTEMPBED)
float get_pid_output_bed() {
float pid_output;
// We need this cause 0 is lower than our current temperature probably.
if(target_temperature_cooler < COOLER_MINTEMP)
return 0;
#if ENABLED(PID_OPENLOOP)
pid_output = constrain(target_temperature_bed, 0, MAX_BED_POWER);
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment