1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 22:08:02 +00:00

Serial double echo fix

Fix double character sent when TX buffer size is 0 on mega2560
This commit is contained in:
GMagician 2017-10-07 22:20:00 +02:00
parent 81a1e69a4a
commit eb96d37da0

View File

@ -482,8 +482,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;