From dd724e9dab1c79b1e4d7e92940c4f33a28f18843 Mon Sep 17 00:00:00 2001
From: Enrico Turri <enricoturri@seznam.cz>
Date: Wed, 25 Jul 2018 09:19:20 +0200
Subject: [PATCH] M73 lines emitted to gcode only for Marlin firmare. Fixes
 #1071

---
 xs/src/libslic3r/GCode.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/xs/src/libslic3r/GCode.cpp b/xs/src/libslic3r/GCode.cpp
index 89a72a725..94634f4e4 100644
--- a/xs/src/libslic3r/GCode.cpp
+++ b/xs/src/libslic3r/GCode.cpp
@@ -377,10 +377,13 @@ void GCode::do_export(Print *print, const char *path, GCodePreviewData *preview_
     }
     fclose(file);
 
-    m_normal_time_estimator.post_process_remaining_times(path_tmp, 60.0f);
+    if (print->config.gcode_flavor.value == gcfMarlin)
+    {
+        m_normal_time_estimator.post_process_remaining_times(path_tmp, 60.0f);
 
-    if (m_silent_time_estimator_enabled)
-        m_silent_time_estimator.post_process_remaining_times(path_tmp, 60.0f);
+        if (m_silent_time_estimator_enabled)
+            m_silent_time_estimator.post_process_remaining_times(path_tmp, 60.0f);
+    }
 
     if (! this->m_placeholder_parser_failed_templates.empty()) {
         // G-code export proceeded, but some of the PlaceholderParser substitutions failed.