浏览代码

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

Wurstnase 10 年前
父节点
当前提交
46d1932380
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      Marlin/Marlin_main.cpp

+ 2
- 1
Marlin/Marlin_main.cpp 查看文件

@@ -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
 }

正在加载...
取消
保存