Store current feedrate when encountering it

Otherwise the feedrate is zero and we get divisions by zero.

Contributes to issue CURA-5561.
This commit is contained in:
Ghostkeeper 2018-09-05 13:47:12 +02:00
parent df8ee1928d
commit 2cc3a593ef
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -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],