From 90ebed1fe41c2e3cb288f108d0f3951f1cba1322 Mon Sep 17 00:00:00 2001 From: dkabot <1316469+dkabot@users.noreply.github.com> Date: Mon, 11 Apr 2022 17:11:29 -0400 Subject: [PATCH] Don't crash when using naive time remaining (#119) Editing a tuple is not allowed in Python, it needs to be either converted to a List or re-created. --- klippy/extras/dgus_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/dgus_status.py b/klippy/extras/dgus_status.py index f57316e4..5099b8da 100644 --- a/klippy/extras/dgus_status.py +++ b/klippy/extras/dgus_status.py @@ -76,7 +76,7 @@ class DGUSStatus: if self.finish_at is not None: self.finish_at += pause_duration if self.finish_at_naive is not None: - self.finish_at_naive[1] += pause_duration + self.finish_at_naive = (self.finish_at_naive[0], self.finish_at_naive[1] + pause_duration) self.pause_at = None return eventtime + 5.