From 9e147e9ac417a016c4e8a5f0178de641146b6ff5 Mon Sep 17 00:00:00 2001 From: etagle Date: Tue, 8 Aug 2017 02:22:33 -0300 Subject: [PATCH] Adding XON/XOFF and STATISTICS configuration settings and proper documentation on their usage for serial port --- Marlin/Configuration_adv.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 4b431f954..1a627a0dd 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -747,6 +747,18 @@ // :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048] #define RX_BUFFER_SIZE 1024 +// This setting determines if the printer will send the XON/XOFF +// control characters to the host to signal RX buffer is becoming full +#define SERIAL_XON_XOFF 1 + +// This setting determines if you want to display and collect +// maximum RX queue usage after transferring a file to the SD +//#define SERIAL_STATS_MAX_RX_QUEUED 1 + +// This setting determines if you want to display and collect +// the number of dropped bytes after a file transfer to the SD +#define SERIAL_STATS_DROPPED_RX 1 + // Enable an emergency-command parser to intercept certain commands as they // enter the serial receive buffer, so they cannot be blocked. // Currently handles M108, M112, M410