From 3543873da72fe00e23ceb73cde24186e649768d3 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 21 Feb 2020 07:24:58 -0600 Subject: [PATCH] Use moves_free in ok_to_send --- Marlin/src/gcode/queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/queue.cpp b/Marlin/src/gcode/queue.cpp index 397b5a3923..12c3703630 100644 --- a/Marlin/src/gcode/queue.cpp +++ b/Marlin/src/gcode/queue.cpp @@ -253,7 +253,7 @@ void GCodeQueue::ok_to_send() { while (NUMERIC_SIGNED(*p)) SERIAL_ECHO(*p++); } - SERIAL_ECHOPAIR_P(SP_P_STR, int(BLOCK_BUFFER_SIZE - planner.movesplanned() - 1)); + SERIAL_ECHOPAIR_P(SP_P_STR, int(planner.moves_free())); SERIAL_ECHOPAIR(" B", int(BUFSIZE - length)); #endif SERIAL_EOL();