mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-11 23:29:03 +08:00
Remove warning when calling flowrate.pl without env variables
This commit is contained in:
parent
c93314c8fe
commit
4b4885fcdf
@ -23,7 +23,7 @@ while (<>) {
|
||||
my $dist = sqrt( (($x-$X)**2) + (($y-$Y)**2) );
|
||||
if ($dist > 0) {
|
||||
my $mm_per_mm = $e_length / $dist; # dE/dXY
|
||||
my $mm3_per_mm = ($filament_diameter[$T] ** 2) * PI/4 * $mm_per_mm;
|
||||
my $mm3_per_mm = (($filament_diameter[$T] // 0) ** 2) * PI/4 * $mm_per_mm;
|
||||
my $vol_speed = $F/60 * $mm3_per_mm;
|
||||
my $comment = sprintf ' ; dXY = %.3fmm ; dE = %.5fmm ; dE/XY = %.5fmm/mm; volspeed = %.5fmm^3/sec',
|
||||
$dist, $e_length, $mm_per_mm, $vol_speed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user