Merge upstream changes from Marlin 2.1.2.2
This commit is contained in:
@@ -35,7 +35,7 @@ public:
|
||||
*/
|
||||
struct SerialState {
|
||||
/**
|
||||
* GCode line number handling. Hosts may include line numbers when sending
|
||||
* G-Code line number handling. Hosts may include line numbers when sending
|
||||
* commands to Marlin, and lines will be checked for sequentiality.
|
||||
* M110 N<int> sets the current line number.
|
||||
*/
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
static SerialState serial_state[NUM_SERIAL]; //!< Serial states for each serial port
|
||||
|
||||
/**
|
||||
* GCode Command Queue
|
||||
* G-Code Command Queue
|
||||
* A simple (circular) ring buffer of BUFSIZE command strings.
|
||||
*
|
||||
* Commands are copied into this buffer by the command injectors
|
||||
@@ -79,12 +79,12 @@ public:
|
||||
|
||||
void advance_pos(uint8_t &p, const int inc) { if (++p >= BUFSIZE) p = 0; length += inc; }
|
||||
|
||||
void commit_command(bool skip_ok
|
||||
OPTARG(HAS_MULTI_SERIAL, serial_index_t serial_ind = serial_index_t())
|
||||
void commit_command(const bool skip_ok
|
||||
OPTARG(HAS_MULTI_SERIAL, serial_index_t serial_ind=serial_index_t())
|
||||
);
|
||||
|
||||
bool enqueue(const char *cmd, bool skip_ok = true
|
||||
OPTARG(HAS_MULTI_SERIAL, serial_index_t serial_ind = serial_index_t())
|
||||
bool enqueue(const char *cmd, const bool skip_ok=true
|
||||
OPTARG(HAS_MULTI_SERIAL, serial_index_t serial_ind=serial_index_t())
|
||||
);
|
||||
|
||||
void ok_to_send();
|
||||
@@ -201,6 +201,12 @@ public:
|
||||
*/
|
||||
static void flush_and_request_resend(const serial_index_t serial_ind);
|
||||
|
||||
#if (defined(ARDUINO_ARCH_STM32F4) || defined(ARDUINO_ARCH_STM32)) && defined(USBCON)
|
||||
static void flush_rx();
|
||||
#else
|
||||
static void flush_rx() {}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* (Re)Set the current line number for the last received command
|
||||
*/
|
||||
@@ -250,7 +256,7 @@ private:
|
||||
|
||||
static void get_serial_commands();
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA
|
||||
static void get_sdcard_commands();
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user