Added option to independently set z axis travel speed

This commit is contained in:
Martin Budden 2021-04-16 08:41:03 +01:00 committed by Lukas Matena
parent e1f2336b8e
commit bd6badf123
6 changed files with 13 additions and 2 deletions

View file

@ -370,7 +370,7 @@ std::string GCodeWriter::_travel_to_z(double z, const std::string &comment)
std::ostringstream gcode;
gcode << "G1 Z" << XYZF_NUM(z)
<< " F" << XYZF_NUM(this->config.travel_speed.value * 60.0);
<< " F" << XYZF_NUM(this->config.travel_speed_z.value * 60.0);
COMMENT(comment);
gcode << "\n";
return gcode.str();