mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 20:39:00 +08:00
Bugfix: use P instead of S for Mach3 for M106 too. #286
This commit is contained in:
parent
7a786844f6
commit
e3a9adae4d
@ -349,7 +349,8 @@ sub set_fan {
|
|||||||
if ($speed == 0) {
|
if ($speed == 0) {
|
||||||
return sprintf "M107%s\n", ($Slic3r::gcode_comments ? ' ; disable fan' : '');
|
return sprintf "M107%s\n", ($Slic3r::gcode_comments ? ' ; disable fan' : '');
|
||||||
} else {
|
} else {
|
||||||
return sprintf "M106 S%d%s\n", (255 * $speed / 100), ($Slic3r::gcode_comments ? ' ; enable fan' : '');
|
return sprintf "M106 %s%d%s\n", ($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'),
|
||||||
|
(255 * $speed / 100), ($Slic3r::gcode_comments ? ' ; enable fan' : '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user