From 3021f7f74332899d1ee5f06d4bd716d7f9794845 Mon Sep 17 00:00:00 2001 From: MagoKimbra Date: Sun, 25 Jan 2015 17:56:14 +0100 Subject: [PATCH] Fix PID_dT Add PID_dT in temeprature.cpp --- Marlin/temperature.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index da5e87637..9889e1fda 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -38,8 +38,15 @@ //=========================================================================== -//=============================public variables============================ +//============================= public variables ============================ //=========================================================================== + +// Sampling period of the temperature routine +#ifdef PID_dT + #undef PID_dT +#endif +#define PID_dT ((OVERSAMPLENR * 12.0)/(F_CPU / 64.0 / 256.0)) + int target_temperature[EXTRUDERS] = { 0 }; int target_temperature_bed = 0; int current_temperature_raw[EXTRUDERS] = { 0 };