diff --git a/klippy/extras/verify_heater.py b/klippy/extras/verify_heater.py index 6726e479f8b5..dd2542f0b569 100644 --- a/klippy/extras/verify_heater.py +++ b/klippy/extras/verify_heater.py @@ -56,6 +56,7 @@ def check_event(self, eventtime): self.error = 0. self.last_target = target return eventtime + 1. + prev_error = self.error self.error += (target - self.hysteresis) - temp if not self.approaching_target: if target != self.last_target: @@ -66,6 +67,8 @@ def check_event(self, eventtime): self.goal_temp = temp + self.heating_gain self.goal_systime = eventtime + self.check_gain_time elif self.error >= self.max_error: + logging.info( "***** Error, heater %s over max_error, temp:%.2f, target: %.2f, error:%.2f, preverr:%.2f, max:%.2f, add tiertime 20231130.", + temp, target, self.error, prev_error, self.max_error) # Failure due to inability to maintain target temperature return self.heater_fault() elif temp >= self.goal_temp: