Browse Source

Merge pull request #2057 from Wurstnase/serial_wait

add plan buffer remaining for 'P' and block buffer remaining 'B'
Scott Lahteine 9 years ago
parent
commit
19166a92e4
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/Marlin_main.cpp

+ 2
- 1
Marlin/Marlin_main.cpp View File

5717
   SERIAL_PROTOCOLPGM(MSG_OK);
5717
   SERIAL_PROTOCOLPGM(MSG_OK);
5718
   #ifdef ADVANCED_OK
5718
   #ifdef ADVANCED_OK
5719
     SERIAL_PROTOCOLPGM(" N"); SERIAL_PROTOCOL(gcode_LastN);
5719
     SERIAL_PROTOCOLPGM(" N"); SERIAL_PROTOCOL(gcode_LastN);
5720
-    SERIAL_PROTOCOLPGM(" P"); SERIAL_PROTOCOL(BUFSIZE - commands_in_queue);
5720
+    SERIAL_PROTOCOLPGM(" P"); SERIAL_PROTOCOL(int(BLOCK_BUFFER_SIZE - movesplanned() - 1));
5721
+    SERIAL_PROTOCOLPGM(" B"); SERIAL_PROTOCOL(BUFSIZE - commands_in_queue);
5721
   #endif
5722
   #endif
5722
   SERIAL_EOL;  
5723
   SERIAL_EOL;  
5723
 }
5724
 }

Loading…
Cancel
Save