Skip to content

Commit 7100730

Browse files
chendoDarred
authored andcommitted
✨ D576 Buffer Monitoring (MarlinFirmware#19674)
1 parent ec87905 commit 7100730

File tree

7 files changed

+360
-207
lines changed

7 files changed

+360
-207
lines changed

Marlin/Configuration_adv.h

+8
Original file line numberDiff line numberDiff line change
@@ -4172,6 +4172,14 @@
41724172
// Enable Marlin dev mode which adds some special commands
41734173
//#define MARLIN_DEV_MODE
41744174

4175+
#if ENABLED(MARLIN_DEV_MODE)
4176+
/**
4177+
* D576 - Buffer Monitoring
4178+
* To help diagnose print quality issues stemming from empty command buffers.
4179+
*/
4180+
//#define BUFFER_MONITORING
4181+
#endif
4182+
41754183
/**
41764184
* Postmortem Debugging captures misbehavior and outputs the CPU status and backtrace to serial.
41774185
* When running in the debugger it will break for debugging. This is useful to help understand

Marlin/src/MarlinCore.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ void idle(bool no_stepper_sleep/*=false*/) {
868868
TERN_(AUTO_REPORT_TEMPERATURES, thermalManager.auto_reporter.tick());
869869
TERN_(AUTO_REPORT_SD_STATUS, card.auto_reporter.tick());
870870
TERN_(AUTO_REPORT_POSITION, position_auto_reporter.tick());
871+
TERN_(BUFFER_MONITORING, queue.auto_report_buffer_statistics());
871872
}
872873
#endif
873874

Marlin/src/gcode/gcode.h

+2
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
242242
* M553 - Get or set IP netmask. (Requires enabled Ethernet port)
243243
* M554 - Get or set IP gateway. (Requires enabled Ethernet port)
244244
* M569 - Enable stealthChop on an axis. (Requires at least one _DRIVER_TYPE to be TMC2130/2160/2208/2209/5130/5160)
245+
* M575 - Change the serial baud rate. (Requires BAUD_RATE_GCODE)
245246
* M600 - Pause for filament change: "M600 X<pos> Y<pos> Z<raise> E<first_retract> L<later_retract>". (Requires ADVANCED_PAUSE_FEATURE)
246247
* M603 - Configure filament change: "M603 T<tool> U<unload_length> L<load_length>". (Requires ADVANCED_PAUSE_FEATURE)
247248
* M605 - Set Dual X-Carriage movement mode: "M605 S<mode> [X<x_offset>] [R<temp_offset>]". (Requires DUAL_X_CARRIAGE)
@@ -298,6 +299,7 @@
298299
* M997 - Perform in-application firmware update
299300
* M999 - Restart after being stopped by error
300301
* D... - Custom Development G-code. Add hooks to 'gcode_D.cpp' for developers to test features. (Requires MARLIN_DEV_MODE)
302+
* D576 - Set buffer monitoring options. (Requires BUFFER_MONITORING)
301303
*
302304
* "T" Codes
303305
*

0 commit comments

Comments
 (0)