added end_program() function to GCodeWriter
This commit is contained in:
parent
d6feec808c
commit
f2fa8cb63f
3 changed files with 11 additions and 0 deletions
|
@ -511,6 +511,15 @@ 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
|
||||
|
|
|
@ -46,6 +46,7 @@ class GCodeWriter {
|
|||
std::string lift();
|
||||
std::string unlift();
|
||||
Pointf3 get_position() const;
|
||||
std::string end_program();
|
||||
|
||||
private:
|
||||
std::string _extrusion_axis;
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
std::string lift();
|
||||
std::string unlift();
|
||||
Clone<Pointf3> get_position() const;
|
||||
std::string end_program();
|
||||
%{
|
||||
|
||||
SV*
|
||||
|
|
Loading…
Reference in a new issue