Browse Source

Fix PID_dT

Add PID_dT in temeprature.cpp
MagoKimbra 10 years ago
parent
commit
3021f7f743
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      Marlin/temperature.cpp

+ 8
- 1
Marlin/temperature.cpp View File

@@ -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 };

Loading…
Cancel
Save