1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 05:48:43 +00:00

Temp Residency followup

This commit is contained in:
Scott Lahteine 2020-07-07 01:50:57 -05:00
parent d3b2c09221
commit 9546847dc1

View File

@ -3099,7 +3099,7 @@ void Temperature::tick() {
if (!residency_start_ms) {
// Start the TEMP_RESIDENCY_TIME timer when we reach target temp for the first time.
if (temp_diff < TEMP_WINDOW) {
if (temp_diff < TEMP_WINDOW)
residency_start_ms = now + (first_loop ? SEC_TO_MS(TEMP_RESIDENCY_TIME) / 3 : 0);
}
else if (temp_diff > TEMP_HYSTERESIS) {