|
@@ -38,8 +38,15 @@
|
38
|
38
|
|
39
|
39
|
|
40
|
40
|
//===========================================================================
|
41
|
|
-//=============================public variables============================
|
|
41
|
+//============================= public variables ============================
|
42
|
42
|
//===========================================================================
|
|
43
|
+
|
|
44
|
+// Sampling period of the temperature routine
|
|
45
|
+#ifdef PID_dT
|
|
46
|
+ #undef PID_dT
|
|
47
|
+#endif
|
|
48
|
+#define PID_dT ((OVERSAMPLENR * 12.0)/(F_CPU / 64.0 / 256.0))
|
|
49
|
+
|
43
|
50
|
int target_temperature[EXTRUDERS] = { 0 };
|
44
|
51
|
int target_temperature_bed = 0;
|
45
|
52
|
int current_temperature_raw[EXTRUDERS] = { 0 };
|