Browse Source

Use moves_free in ok_to_send

Scott Lahteine 4 years ago
parent
commit
1ab6f910b6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/queue.cpp

+ 1
- 1
Marlin/src/gcode/queue.cpp View File

@@ -253,7 +253,7 @@ void GCodeQueue::ok_to_send() {
253 253
       while (NUMERIC_SIGNED(*p))
254 254
         SERIAL_ECHO(*p++);
255 255
     }
256
-    SERIAL_ECHOPAIR_P(SP_P_STR, int(BLOCK_BUFFER_SIZE - planner.movesplanned() - 1));
256
+    SERIAL_ECHOPAIR_P(SP_P_STR, int(planner.moves_free()));
257 257
     SERIAL_ECHOPAIR(" B", int(BUFSIZE - length));
258 258
   #endif
259 259
   SERIAL_EOL();

Loading…
Cancel
Save