Fix error in autospeed. #2810
This commit is contained in:
parent
e90f5fde4e
commit
8613e174e7
@ -313,7 +313,7 @@ sub _extrude_path {
|
||||
$speed ||= $self->volumetric_speed / $path->mm3_per_mm;
|
||||
}
|
||||
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
|
||||
$gcode .= ";_BRIDGE_FAN_START\n" if $path->is_bridge && $self->enable_cooling_markers;
|
||||
my $path_length = unscale $path->length;
|
||||
|
@ -75,8 +75,9 @@ sub BUILD {
|
||||
}
|
||||
}
|
||||
}
|
||||
my $min_mm3_per_mm = min(@mm3_per_mm) // 0;
|
||||
if ($min_mm3_per_mm > 0) {
|
||||
@mm3_per_mm = grep $_ != 0, @mm3_per_mm;
|
||||
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
|
||||
# speed that we can use throughout the print. So we define this target
|
||||
# volumetric speed as the volumetric speed produced by printing the
|
||||
|
Loading…
Reference in New Issue
Block a user