Fix error in autospeed. #2810
This commit is contained in:
parent
e90f5fde4e
commit
8613e174e7
2 changed files with 4 additions and 3 deletions
|
@ -313,7 +313,7 @@ sub _extrude_path {
|
||||||
$speed ||= $self->volumetric_speed / $path->mm3_per_mm;
|
$speed ||= $self->volumetric_speed / $path->mm3_per_mm;
|
||||||
}
|
}
|
||||||
my $F = $speed * 60; # convert mm/sec to mm/min
|
my $F = $speed * 60; # convert mm/sec to mm/min
|
||||||
|
use XXX; YYY $path->role, $speed, $self->volumetric_speed if $F == 0;
|
||||||
# extrude arc or line
|
# extrude arc or line
|
||||||
$gcode .= ";_BRIDGE_FAN_START\n" if $path->is_bridge && $self->enable_cooling_markers;
|
$gcode .= ";_BRIDGE_FAN_START\n" if $path->is_bridge && $self->enable_cooling_markers;
|
||||||
my $path_length = unscale $path->length;
|
my $path_length = unscale $path->length;
|
||||||
|
|
|
@ -75,8 +75,9 @@ sub BUILD {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
my $min_mm3_per_mm = min(@mm3_per_mm) // 0;
|
@mm3_per_mm = grep $_ != 0, @mm3_per_mm;
|
||||||
if ($min_mm3_per_mm > 0) {
|
if (@mm3_per_mm) {
|
||||||
|
my $min_mm3_per_mm = min(@mm3_per_mm);
|
||||||
# In order to honor max_print_speed we need to find a target volumetric
|
# In order to honor max_print_speed we need to find a target volumetric
|
||||||
# speed that we can use throughout the print. So we define this target
|
# speed that we can use throughout the print. So we define this target
|
||||||
# volumetric speed as the volumetric speed produced by printing the
|
# volumetric speed as the volumetric speed produced by printing the
|
||||||
|
|
Loading…
Add table
Reference in a new issue