From 11eafebd8ffd0d1453d90cab0b93681023202fb2 Mon Sep 17 00:00:00 2001 From: Sergey Kovalev Date: Sun, 27 Dec 2020 23:16:19 +0700 Subject: [PATCH] Fix printing start condition, a little bit more comments --- src/slic3r/Utils/MKS.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/Utils/MKS.cpp b/src/slic3r/Utils/MKS.cpp index 4f7c9a90b..aa7eee48e 100644 --- a/src/slic3r/Utils/MKS.cpp +++ b/src/slic3r/Utils/MKS.cpp @@ -99,7 +99,9 @@ bool MKS::upload(PrintHostUpload upload_data, ProgressFn prorgess_fn, ErrorFn er }) .perform_sync(); - if (res) { + if (res && upload_data.start_print) { + // For some reason printer firmware does not want to respond on gcode commands immediately after file upload. + // So we just introduce artificial delay to workaround it. std::this_thread::sleep_for(std::chrono::milliseconds(1500)); wxString msg;