Switched to P parameter instead of S for Machinekit flavour MCode commands
This commit is contained in:
parent
cc83e9f06d
commit
cef1494852
@ -83,7 +83,7 @@ GCodeWriter::set_temperature(unsigned int temperature, bool wait, int tool)
|
|||||||
|
|
||||||
std::ostringstream gcode;
|
std::ostringstream gcode;
|
||||||
gcode << code << " ";
|
gcode << code << " ";
|
||||||
if (FLAVOR_IS(gcfMach3)) {
|
if (FLAVOR_IS(gcfMach3) || FLAVOR_IS(gcfMachinekit)) {
|
||||||
gcode << "P";
|
gcode << "P";
|
||||||
} else {
|
} else {
|
||||||
gcode << "S";
|
gcode << "S";
|
||||||
@ -118,7 +118,7 @@ GCodeWriter::set_bed_temperature(unsigned int temperature, bool wait)
|
|||||||
|
|
||||||
std::ostringstream gcode;
|
std::ostringstream gcode;
|
||||||
gcode << code << " ";
|
gcode << code << " ";
|
||||||
if (FLAVOR_IS(gcfMach3)) {
|
if (FLAVOR_IS(gcfMach3) || FLAVOR_IS(gcfMachinekit)) {
|
||||||
gcode << "P";
|
gcode << "P";
|
||||||
} else {
|
} else {
|
||||||
gcode << "S";
|
gcode << "S";
|
||||||
@ -153,7 +153,7 @@ GCodeWriter::set_fan(unsigned int speed, bool dont_save)
|
|||||||
gcode << "M126";
|
gcode << "M126";
|
||||||
} else {
|
} else {
|
||||||
gcode << "M106 ";
|
gcode << "M106 ";
|
||||||
if (FLAVOR_IS(gcfMach3)) {
|
if (FLAVOR_IS(gcfMach3) || FLAVOR_IS(gcfMachinekit)) {
|
||||||
gcode << "P";
|
gcode << "P";
|
||||||
} else {
|
} else {
|
||||||
gcode << "S";
|
gcode << "S";
|
||||||
|
Loading…
Reference in New Issue
Block a user