From 2ef49a9d532dab07b40636614ef17b3e7ba86f6e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 15 Mar 2016 03:49:44 -0700 Subject: [PATCH] Wrap DEFAULT_Ki, DEFAULT_Kd, PID_dT Addition to #3140 --- Marlin/temperature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 97d9c93d84..750a6abcff 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -146,8 +146,8 @@ static unsigned char soft_pwm[EXTRUDERS]; #endif // PID_ADD_EXTRUSION_RATE #else //PID_PARAMS_PER_EXTRUDER float Kp = DEFAULT_Kp; - float Ki = DEFAULT_Ki * PID_dT; - float Kd = DEFAULT_Kd / PID_dT; + float Ki = (DEFAULT_Ki) * (PID_dT); + float Kd = (DEFAULT_Kd) / (PID_dT); #if ENABLED(PID_ADD_EXTRUSION_RATE) float Kc = DEFAULT_Kc; #endif // PID_ADD_EXTRUSION_RATE