From 7de6476b3d2d2a40b7d0cfc0fdafe077fbebc43f Mon Sep 17 00:00:00 2001 From: Chris Pepper Date: Thu, 28 Feb 2019 02:31:42 +0000 Subject: [PATCH] Fix binary protocol error --- Marlin/src/gcode/queue.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Marlin/src/gcode/queue.cpp b/Marlin/src/gcode/queue.cpp index 4e9a47eafe..eb7f6a74c4 100644 --- a/Marlin/src/gcode/queue.cpp +++ b/Marlin/src/gcode/queue.cpp @@ -453,9 +453,8 @@ void gcode_line_error(PGM_P const err, const int8_t port) { stream_state = StreamState::STREAM_HEADER; // defer packet confirmation to STREAM_HEADER state else { if (bytes_received < stream_header.filesize) { - stream_state = StreamState::PACKET_RESET; // reset and receive next packet - SERIAL_ECHOLNPGM("ok"); // transmit confirm packet received and valid token - SERIAL_ECHOLN(packet.header.id); + stream_state = StreamState::PACKET_RESET; // reset and receive next packet + SERIAL_ECHOLNPAIR("ok", packet.header.id); // transmit confirm packet received and valid token } else stream_state = StreamState::STREAM_COMPLETE; // no more data required