Merge pull request #7892 from GMagician/Serial-double-echo-fix
[2.0.x] Serial double echo fix
This commit is contained in:
commit
732e87e83c
|
@ -481,8 +481,6 @@
|
||||||
#else // TX_BUFFER_SIZE == 0
|
#else // TX_BUFFER_SIZE == 0
|
||||||
|
|
||||||
void MarlinSerial::write(const uint8_t c) {
|
void MarlinSerial::write(const uint8_t c) {
|
||||||
while (!TEST(M_UCSRxA, M_UDREx)) { /* nada */ }
|
|
||||||
M_UDRx = c;
|
|
||||||
#if ENABLED(SERIAL_XON_XOFF)
|
#if ENABLED(SERIAL_XON_XOFF)
|
||||||
// Do a priority insertion of an XON/XOFF char, if needed.
|
// Do a priority insertion of an XON/XOFF char, if needed.
|
||||||
const uint8_t state = xon_xoff_state;
|
const uint8_t state = xon_xoff_state;
|
||||||
|
|
Loading…
Reference in a new issue