Commit 5b572c16 authored by Guillaume Seguin's avatar Guillaume Seguin

Compute duration estimation across all actual layers for correctness

This also matters as those actual layers are what we will use for ETA
parent 7c3250a9
......@@ -288,10 +288,7 @@ class GCode(object):
#TODO:
# get device caps from firmware: max speed, acceleration/axis (including extruder)
# calculate the maximum move duration accounting for above ;)
zs = self.layers.keys()
zs.sort()
for z in zs:
layer = self.layers[z]
for layer in self.all_layers:
for line in layer.lines:
if line.command not in ["G1", "G0", "G4"]:
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment