Don't store escaped serial characters if comment_mode

This commit is contained in:
Scott Lahteine 2016-03-28 04:36:14 -07:00
parent 5f8e52aefb
commit 3dcf6d42ff

View File

@ -978,7 +978,7 @@ void get_command() {
if (MYSERIAL.available() > 0) { if (MYSERIAL.available() > 0) {
// if we have one more character, copy it over // if we have one more character, copy it over
serial_char = MYSERIAL.read(); 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 // otherwise do nothing
} }