From b45dd95f8edb5f04f2e5f2560d2f0d8de4f655c0 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Wed, 21 Aug 2024 19:30:50 +0200 Subject: [PATCH] Apply review suggestions Contribute to NP-327 --- src/communication/CommandLine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/communication/CommandLine.cpp b/src/communication/CommandLine.cpp index 51a016c82a..b8d705c4e0 100644 --- a/src/communication/CommandLine.cpp +++ b/src/communication/CommandLine.cpp @@ -192,13 +192,12 @@ void CommandLine::sliceNext() force_read_parent = false; force_read_nondefault = false; } -#ifdef __EMSCRIPTEN__ else if (argument.starts_with("--progress_cb") || argument.starts_with("--slice_info_cb") || argument.starts_with("--gcode_prefix_cb")) { + // Unused in command line slicing, but used in EmscriptenCommunication. argument_index++; argument = arguments_[argument_index]; } -#endif // __EMSCRIPTEN__ else { spdlog::error("Unknown option: {}", argument);