From 3dcf6d42ff068c6e3c3bcfe908acc7aecff30931 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 28 Mar 2016 04:36:14 -0700 Subject: [PATCH] Don't store escaped serial characters if comment_mode --- 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 9df5fa6a2..de155a122 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -978,7 +978,7 @@ void get_command() { if (MYSERIAL.available() > 0) { // if we have one more character, copy it over serial_char = MYSERIAL.read(); - serial_line_buffer[serial_count++] = serial_char; + if (!serial_comment_mode) serial_line_buffer[serial_count++] = serial_char; } // otherwise do nothing }