Pārlūkot izejas kodu

advanced 'ok'

ok N(linenumber) P(bufferremaining)
the host can use this to send the data much faster.

Some pseudo code:
If (bufferremaining > 0)  send command
## as long there is free buffer send command

Also
if (linenumber > lastsend - bufferremaining) send command
## as long last linenumber received is bigger than lastsend (host) - last bufferremaining received
Wurstnase 9 gadus atpakaļ
vecāks
revīzija
0cb87795a3
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      Marlin/Marlin_main.cpp

+ 2
- 1
Marlin/Marlin_main.cpp Parādīt failu

@@ -5533,8 +5533,9 @@ 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(" S"); SERIAL_PROTOCOLLN(commands_in_queue);
5536
+    SERIAL_PROTOCOLPGM(" P"); SERIAL_PROTOCOL(BUFSIZE - commands_in_queue);
5537 5537
   #endif
5538
+  SERIAL_PROTOCOLLNPGM("");  
5538 5539
 }
5539 5540
 
5540 5541
 void get_coordinates() {

Notiek ielāde…
Atcelt
Saglabāt