Browse Source

Fix unknown command on empty lines (#16867)

pull/1/head
Giuliano Zaro 5 years ago
committed by GitHub
parent
commit
42208bc031
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Marlin/src/gcode/queue.cpp

4
Marlin/src/gcode/queue.cpp

@ -415,7 +415,7 @@ void GCodeQueue::get_serial_commands() {
if (serial_char == '\n' || serial_char == '\r') { if (serial_char == '\n' || serial_char == '\r') {
process_line_done(serial_input_state[i], serial_line_buffer[i], serial_count[i]); if (process_line_done(serial_input_state[i], serial_line_buffer[i], serial_count[i])) continue;
char* command = serial_line_buffer[i]; char* command = serial_line_buffer[i];
@ -550,7 +550,7 @@ void GCodeQueue::get_serial_commands() {
else if (n < 0) else if (n < 0)
SERIAL_ERROR_MSG(MSG_SD_ERR_READ); SERIAL_ERROR_MSG(MSG_SD_ERR_READ);
process_line_done(sd_input_state, command_buffer[index_w], sd_count); if (process_line_done(sd_input_state, command_buffer[index_w], sd_count)) continue;
_commit_command(false); _commit_command(false);

Loading…
Cancel
Save