From 2cc3a593ef3407432a18891c430bff5bb278f6b1 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 5 Sep 2018 13:47:12 +0200 Subject: [PATCH] Store current feedrate when encountering it Otherwise the feedrate is zero and we get divisions by zero. Contributes to issue CURA-5561. --- 50_inst_per_sec.py | 1 + 1 file changed, 1 insertion(+) diff --git a/50_inst_per_sec.py b/50_inst_per_sec.py index 5f11c96c18..a6979755f5 100644 --- a/50_inst_per_sec.py +++ b/50_inst_per_sec.py @@ -221,6 +221,7 @@ class Command: new_position[1] = float(value_dict.get("Y", new_position[1])) new_position[2] = float(value_dict.get("Z", new_position[2])) new_position[3] = float(value_dict.get("E", new_position[3])) + buf.current_feedrate = value_dict.get("F", buf.current_feedrate) self._delta = [ new_position[0] - buf.current_position[0],