Ported test_gcodewriter from upstream Slic3r, thanks @lordofhyphens.

The format for G1 Fxxx was changed to fixed three decimal digits.
This commit is contained in:
bubnikv 2019-10-15 17:35:19 +02:00
parent 88df291372
commit de45be5f29
5 changed files with 156 additions and 2 deletions

View file

@ -269,7 +269,7 @@ std::string GCodeWriter::set_speed(double F, const std::string &comment, const s
assert(F > 0.);
assert(F < 100000.);
std::ostringstream gcode;
gcode << "G1 F" << F;
gcode << "G1 F" << XYZF_NUM(F);
COMMENT(comment);
gcode << cooling_marker;
gcode << "\n";