From 45e611c9fc979a7edbd3ab77e18b17c1246b21a5 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 17 Dec 2018 09:57:24 +0100 Subject: [PATCH] Fixed M203 processing by the time estimator for Smoothieware. Fixes "Print time estimate incorrect for Smoothie flavor with M203 #1259" --- src/libslic3r/GCodeTimeEstimator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/GCodeTimeEstimator.cpp b/src/libslic3r/GCodeTimeEstimator.cpp index 4bfd5d63f..5c8cc2659 100644 --- a/src/libslic3r/GCodeTimeEstimator.cpp +++ b/src/libslic3r/GCodeTimeEstimator.cpp @@ -1223,7 +1223,8 @@ namespace Slic3r { return; // see http://reprap.org/wiki/G-code#M203:_Set_maximum_feedrate - float factor = (dialect == gcfMarlin) ? 1.0f : MMMIN_TO_MMSEC; + // http://smoothieware.org/supported-g-codes + float factor = (dialect == gcfMarlin || dialect == gcfSmoothie) ? 1.0f : MMMIN_TO_MMSEC; if (line.has_x()) set_axis_max_feedrate(X, line.x() * factor);