|
@@ -1813,12 +1813,12 @@ void Temperature::init() {
|
1813
|
1813
|
}while(0)
|
1814
|
1814
|
|
1815
|
1815
|
#define _MINMAX_TEST(N,M) (HOTENDS > N && THERMISTOR_HEATER_##N && THERMISTOR_HEATER_##N != 998 && THERMISTOR_HEATER_##N != 999 && defined(HEATER_##N##_##M##TEMP))
|
1816
|
|
-
|
|
1816
|
+
|
1817
|
1817
|
#if _MINMAX_TEST(0, MIN)
|
1818
|
1818
|
_TEMP_MIN_E(0);
|
1819
|
1819
|
#endif
|
1820
|
1820
|
#if _MINMAX_TEST(0, MAX)
|
1821
|
|
- _TEMP_MAX_E(0);
|
|
1821
|
+ _TEMP_MAX_E(0);
|
1822
|
1822
|
#endif
|
1823
|
1823
|
#if _MINMAX_TEST(1, MIN)
|
1824
|
1824
|
_TEMP_MIN_E(1);
|
|
@@ -3099,7 +3099,7 @@ void Temperature::tick() {
|
3099
|
3099
|
|
3100
|
3100
|
if (!residency_start_ms) {
|
3101
|
3101
|
// Start the TEMP_RESIDENCY_TIME timer when we reach target temp for the first time.
|
3102
|
|
- if (temp_diff < TEMP_WINDOW) {
|
|
3102
|
+ if (temp_diff < TEMP_WINDOW)
|
3103
|
3103
|
residency_start_ms = now + (first_loop ? SEC_TO_MS(TEMP_RESIDENCY_TIME) / 3 : 0);
|
3104
|
3104
|
}
|
3105
|
3105
|
else if (temp_diff > TEMP_HYSTERESIS) {
|