mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Change end_program() to postamble()
This commit is contained in:
parent
1180a6d83f
commit
ba6ae12635
4 changed files with 12 additions and 12 deletions
|
@ -66,6 +66,15 @@ GCodeWriter::preamble()
|
|||
return gcode.str();
|
||||
}
|
||||
|
||||
std::string
|
||||
GCodeWriter::postamble()
|
||||
{
|
||||
std::ostringstream gcode;
|
||||
if (FLAVOR_IS(gcfMachinekit))
|
||||
gcode << "M2 ; end of program\n";
|
||||
return gcode.str();
|
||||
}
|
||||
|
||||
std::string
|
||||
GCodeWriter::set_temperature(unsigned int temperature, bool wait, int tool)
|
||||
{
|
||||
|
@ -511,15 +520,6 @@ GCodeWriter::get_position() const
|
|||
return this->_pos;
|
||||
}
|
||||
|
||||
std::string
|
||||
GCodeWriter::end_program()
|
||||
{
|
||||
std::ostringstream gcode;
|
||||
if (FLAVOR_IS(gcfMachinekit))
|
||||
gcode << "M2 ; end of program\n";
|
||||
return gcode.str();
|
||||
}
|
||||
|
||||
#ifdef SLIC3RXS
|
||||
REGISTER_CLASS(GCodeWriter, "GCode::Writer");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue