瀏覽代碼

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
   SERIAL_PROTOCOLPGM(MSG_OK);
5533
   SERIAL_PROTOCOLPGM(MSG_OK);
5534
   #ifdef ADVANCED_OK
5534
   #ifdef ADVANCED_OK
5535
     SERIAL_PROTOCOLPGM(" N"); SERIAL_PROTOCOL(gcode_LastN);
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
   #endif
5538
   #endif
5538
   SERIAL_EOL;  
5539
   SERIAL_EOL;  
5539
 }
5540
 }

Loading…
取消
儲存