Add M576 which allows reporting of queue statistics, specifically planner/command buffer space remaining, as well as command buffer underruns, and time the command buffer remained empty since last M576 output

This commit is contained in:
Jack Chen (chendo) 2020-10-10 16:59:29 +11:00
parent 1403260487
commit e874558381
7 changed files with 149 additions and 1 deletions

View file

@ -1958,6 +1958,15 @@
// Some clients will have this feature soon. This could make the NO_TIMEOUTS unnecessary.
//#define ADVANCED_OK
/**
* Buffer monitoring
*
* To help diagnose print quality issues stemming from command buffers being empty,
* we add M576 which enables reporting of buffer empty
*/
#define BUFFER_MONITORING
// Printrun may have trouble receiving long strings all at once.
// This option inserts short delays between lines of serial output.
#define SERIAL_OVERRUN_PROTECTION