diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2018-07-25 10:19:20 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2018-07-25 10:19:20 +0300 |
commit | dd724e9dab1c79b1e4d7e92940c4f33a28f18843 (patch) | |
tree | dc0142711884609ead73141e3010f0bb94a8ed19 | |
parent | e0e6a238107b3614fde83d79a6e6056d0a378e2a (diff) |
M73 lines emitted to gcode only for Marlin firmare. Fixes #1071
-rw-r--r-- | xs/src/libslic3r/GCode.cpp | 9 |
1 files 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. |