From cdcb80f3c5bdd29569273f7549801a3b1144d4f8 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 9 Feb 2016 18:00:35 -0800 Subject: [PATCH] Allow no-space after initial command Addresses issue #2715 --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index d21bd599e..53cdc29e4 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -5716,7 +5716,7 @@ void process_next_command() { // Args pointer optimizes code_seen, especially those taking XYZEF // This wastes a little cpu on commands that expect no arguments. current_command_args = current_command; - while (*current_command_args && *current_command_args != ' ') ++current_command_args; + while (*current_command_args >= '0' && *current_command_args <= '9') ++current_command_args; while (*current_command_args == ' ') ++current_command_args; // Interpret the code int