Browse Source

Use WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1 as difference limit

Scott Lahteine 9 years ago
parent
commit
d693e0f378

+ 1
- 1
Marlin/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/configurator/config/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -25,7 +25,7 @@
25 25
    * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26 26
    * WATCH_TEMP_PERIOD to transpire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27 27
    * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is below the target by at least 2 * WATCH_TEMP_INCREASE degrees.
28
+   * but only if the current temperature is far enough below the target for a reliable test.
29 29
    */
30 30
   #define WATCH_TEMP_PERIOD 16                // Seconds
31 31
   #define WATCH_TEMP_INCREASE 4               // Degrees Celsius

+ 1
- 1
Marlin/temperature.cpp View File

@@ -1007,7 +1007,7 @@ void tp_init() {
1007 1007
    */
1008 1008
   void start_watching_heater(int e) {
1009 1009
     millis_t ms = millis() + WATCH_TEMP_PERIOD * 1000;
1010
-    if (degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE * 2)) {
1010
+    if (degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)) {
1011 1011
       watch_target_temp[e] = degHotend(e) + WATCH_TEMP_INCREASE;
1012 1012
       watch_heater_next_ms[e] = ms;
1013 1013
     }

Loading…
Cancel
Save