Compute duration estimation across all actual layers for correctness

This also matters as those actual layers are what we will use for ETA
master
Guillaume Seguin 2013-05-18 23:09:49 +02:00
parent 7c3250a9e1
commit 5b572c167f
1 changed files with 1 additions and 4 deletions

View File

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