From 97ca1b3f4de5440f25236e98bc893a2100834897 Mon Sep 17 00:00:00 2001 From: AnHardt Date: Mon, 18 May 2015 14:15:29 +0200 Subject: [PATCH] Name magic value 20 to MAX_OVERSHOOT_PID_AUTOTUNE to make it better findable. --- Marlin/temperature.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 9ccd1de14..07db02ab4 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -312,7 +312,8 @@ void PID_autotune(float temp, int extruder, int ncycles) } } } - if (input > temp + 20) { + #define MAX_OVERSHOOT_PID_AUTOTUNE 20 + if (input > temp + MAX_OVERSHOOT_PID_AUTOTUNE) { SERIAL_PROTOCOLLNPGM(MSG_PID_TEMP_TOO_HIGH); return; }