Fix crash when processLinearMove gets called on something else than G0 or G1

Return the original line then.
This commit is contained in:
Ghostkeeper 2020-08-07 15:29:55 +02:00
parent 3cdf5a82a4
commit 8b522a8a58
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -1101,7 +1101,7 @@ class ChangeAtZProcessor:
# if it's not a linear move, we don't care
if linear_command is None:
return
return line
# get our linear move parameters
feed_rate = linear_command.Arguments["F"]