diff options
author | Alexander Rössler <mail.aroessler@gmail.com> | 2015-02-10 16:22:23 +0300 |
---|---|---|
committer | Alexander Rössler <mail.aroessler@gmail.com> | 2015-02-10 16:22:23 +0300 |
commit | cef149485284ceefee77c3ece3db0728f693bfb1 (patch) | |
tree | 7ad8f903568ebc6fd5ba10674996747aa9f773c1 /xs/src/libslic3r/GCodeWriter.cpp | |
parent | cc83e9f06d3d236e5c5599783f5ad3cfd4d149e6 (diff) |
Switched to P parameter instead of S for Machinekit flavour MCode commands
Diffstat (limited to 'xs/src/libslic3r/GCodeWriter.cpp')
-rw-r--r-- | xs/src/libslic3r/GCodeWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xs/src/libslic3r/GCodeWriter.cpp b/xs/src/libslic3r/GCodeWriter.cpp index 624f11c57..cacedd427 100644 --- a/xs/src/libslic3r/GCodeWriter.cpp +++ b/xs/src/libslic3r/GCodeWriter.cpp @@ -83,7 +83,7 @@ GCodeWriter::set_temperature(unsigned int temperature, bool wait, int tool) std::ostringstream gcode; gcode << code << " "; - if (FLAVOR_IS(gcfMach3)) { + if (FLAVOR_IS(gcfMach3) || FLAVOR_IS(gcfMachinekit)) { gcode << "P"; } else { gcode << "S"; @@ -118,7 +118,7 @@ GCodeWriter::set_bed_temperature(unsigned int temperature, bool wait) std::ostringstream gcode; gcode << code << " "; - if (FLAVOR_IS(gcfMach3)) { + if (FLAVOR_IS(gcfMach3) || FLAVOR_IS(gcfMachinekit)) { gcode << "P"; } else { gcode << "S"; @@ -153,7 +153,7 @@ GCodeWriter::set_fan(unsigned int speed, bool dont_save) gcode << "M126"; } else { gcode << "M106 "; - if (FLAVOR_IS(gcfMach3)) { + if (FLAVOR_IS(gcfMach3) || FLAVOR_IS(gcfMachinekit)) { gcode << "P"; } else { gcode << "S"; |