|
|
@ -243,7 +243,7 @@ void MarlinSerial::flush(void) {
|
|
|
|
// register empty flag ourselves. If it is set, pretend an
|
|
|
|
// register empty flag ourselves. If it is set, pretend an
|
|
|
|
// interrupt has happened and call the handler to free up
|
|
|
|
// interrupt has happened and call the handler to free up
|
|
|
|
// space for us.
|
|
|
|
// space for us.
|
|
|
|
if(TEST(M_UCSRxA, M_UDREx))
|
|
|
|
if (TEST(M_UCSRxA, M_UDREx))
|
|
|
|
_tx_udr_empty_irq();
|
|
|
|
_tx_udr_empty_irq();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// nop, the interrupt handler will free up space for us
|
|
|
|
// nop, the interrupt handler will free up space for us
|
|
|
|