From 73a78406974fd287ccff55de4b3e1f71e7020325 Mon Sep 17 00:00:00 2001 From: Pascal Pieper Date: Sun, 8 Aug 2021 22:35:34 +0200 Subject: [PATCH] output_pin: fix time difference calculation Signed-off-by: Pascal Pieper --- klippy/extras/output_pin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/output_pin.py b/klippy/extras/output_pin.py index b59611fb..8b41aca7 100644 --- a/klippy/extras/output_pin.py +++ b/klippy/extras/output_pin.py @@ -91,7 +91,7 @@ class PrinterOutputPin: systime = self.reactor.monotonic() print_time = self.mcu_pin.get_mcu().estimated_print_time(systime) - time_diff = print_time - (self.last_print_time + self.resend_interval) + time_diff = (self.last_print_time + self.resend_interval) - print_time if time_diff > 0.: # Reschedule for resend time return systime + time_diff