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
       while (NUMERIC_SIGNED(*p))
253
       while (NUMERIC_SIGNED(*p))
254
         SERIAL_ECHO(*p++);
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
     SERIAL_ECHOPAIR(" B", int(BUFSIZE - length));
257
     SERIAL_ECHOPAIR(" B", int(BUFSIZE - length));
258
   #endif
258
   #endif
259
   SERIAL_EOL();
259
   SERIAL_EOL();

Loading…
Cancel
Save