Browse Source

add plan buffer remaining for 'P' and block buffer remaining 'B'

Wurstnase 9 years ago
parent
commit
46d1932380
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/Marlin_main.cpp

+ 2
- 1
Marlin/Marlin_main.cpp View File

@@ -5533,7 +5533,8 @@ void ClearToSend() {
5533 5533
   SERIAL_PROTOCOLPGM(MSG_OK);
5534 5534
   #ifdef ADVANCED_OK
5535 5535
     SERIAL_PROTOCOLPGM(" N"); SERIAL_PROTOCOL(gcode_LastN);
5536
-    SERIAL_PROTOCOLPGM(" P"); SERIAL_PROTOCOL(BUFSIZE - commands_in_queue);
5536
+    SERIAL_PROTOCOLPGM(" P"); SERIAL_PROTOCOL(int(BLOCK_BUFFER_SIZE - movesplanned() - 1));
5537
+    SERIAL_PROTOCOLPGM(" B"); SERIAL_PROTOCOL(BUFSIZE - commands_in_queue);
5537 5538
   #endif
5538 5539
   SERIAL_EOL;  
5539 5540
 }

Loading…
Cancel
Save