|
@@ -137,10 +137,6 @@ void MarlinSerial::flush() {
|
137
|
137
|
// occurs after reading the value of rx_buffer_head but before writing
|
138
|
138
|
// the value to rx_buffer_tail; the previous value of rx_buffer_head
|
139
|
139
|
// may be written to rx_buffer_tail, making it appear as if the buffer
|
140
|
|
- // don't reverse this or there may be problems if the RX interrupt
|
141
|
|
- // occurs after reading the value of rx_buffer_head but before writing
|
142
|
|
- // the value to rx_buffer_tail; the previous value of rx_buffer_head
|
143
|
|
- // may be written to rx_buffer_tail, making it appear as if the buffer
|
144
|
140
|
// were full, not empty.
|
145
|
141
|
CRITICAL_SECTION_START;
|
146
|
142
|
rx_buffer.head = rx_buffer.tail;
|