Disable acceleration control if default_acceleration is zero

This commit is contained in:
Justin Schuh 2021-07-23 07:16:21 -07:00 committed by Lukáš Matěna
parent 6887fa829e
commit 482841b39e

View File

@ -2807,7 +2807,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
gcode += this->unretract();
// adjust acceleration
{
if (m_config.default_acceleration.value > 0) {
double acceleration;
if (this->on_first_layer() && m_config.first_layer_acceleration.value > 0) {
acceleration = m_config.first_layer_acceleration.value;