Skip to content

Commit

Permalink
set PA for RepRap (bambulab#19)
Browse files Browse the repository at this point in the history
* set PA for RepRap

* Fix generated  by

* change  Slicer Name
  • Loading branch information
hliebscher authored Dec 13, 2022
1 parent abb6676 commit 1e523fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libslic3r/GCodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ std::string GCodeWriter::set_pressure_advance(double pa) const
else{
if (FLAVOR_IS(gcfKlipper))
gcode << "SET_PRESSURE_ADVANCE ADVANCE=" << std::setprecision(4) << pa << "; Override pressure advance value\n";
else if(FLAVOR_IS(gcfRepRapFirmware))
gcode << ("M572 D0 S") << std::setprecision(4) << pa << "; Override pressure advance value\n";
else
gcode << "M900 K" <<std::setprecision(4)<< pa << "; Override pressure advance value\n";
}
Expand Down

0 comments on commit 1e523fa

Please sign in to comment.