From 773fa5c40f287d81f9c509405e8be22c2cfb3905 Mon Sep 17 00:00:00 2001 From: Giuliano Zaro <3684609+GMagician@users.noreply.github.com> Date: Tue, 12 Feb 2019 00:29:17 +0100 Subject: [PATCH] Fix define used when PID is off (#13119) Replaced `PID_MAX` with `BANG_MAX` since it should be the correct define to be used when PID is not enabled. --- Marlin/src/module/temperature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index 1eb2d5623..bc14eebe0 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -803,7 +803,7 @@ float Temperature::get_pid_output(const int8_t e) { pid_output = 0; else #endif - pid_output = (current_temperature[HOTEND_INDEX] < target_temperature[HOTEND_INDEX]) ? PID_MAX : 0; + pid_output = (current_temperature[HOTEND_INDEX] < target_temperature[HOTEND_INDEX]) ? BANG_MAX : 0; #endif return pid_output;