XON/XOFF corrections, tweaks, formatting, etc.

This commit is contained in:
Scott Lahteine 2017-10-02 00:26:56 -05:00
parent 94caabf89a
commit 4e19ff75b6
6 changed files with 228 additions and 291 deletions

View file

@ -740,24 +740,27 @@
// :[0, 2, 4, 8, 16, 32, 64, 128, 256]
#define TX_BUFFER_SIZE 0
// Reception from Host Buffer Size
// This is the size of the Reception buffer. If XON/XOFF software flow control
// is not enabled, then 32 bytes should be enough. But if you plan to use XON/XOFF
// you need 1024 bytes at least.
// Host Receive Buffer Size
// Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
// To use flow control, set this buffer size to at least 1024 bytes.
// :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
#define RX_BUFFER_SIZE 1024
//#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
#if RX_BUFFER_SIZE >= 1024
// Enable to have the controller send XON/XOFF control characters to
// the host to signal the RX buffer is becoming full.
//#define SERIAL_XON_XOFF
#endif
// 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
#if ENABLED(SDSUPPORT)
// Enable this option to collect and display the maximum
// RX queue usage after transferring a file to SD.
//#define SERIAL_STATS_MAX_RX_QUEUED
// 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 this option to collect and display the number
// of dropped bytes after a file transfer to SD.
//#define SERIAL_STATS_DROPPED_RX
#endif
// Enable an emergency-command parser to intercept certain commands as they
// enter the serial receive buffer, so they cannot be blocked.