Fix STM32 flush of TX (used by UBL) (#16197)

This commit is contained in:
randellhodges 2019-12-22 03:08:17 -06:00 committed by Scott Lahteine
parent 59f9bb2120
commit ebdf8b6b1a

View file

@ -75,7 +75,7 @@ extern uint8_t marlin_debug_flags;
#define SERIAL_PRINTF(V...) SERIAL_OUT(printf, V)
#define SERIAL_FLUSH() SERIAL_OUT(flush)
#ifdef __STM32F1__
#ifdef ARDUINO_ARCH_STM32
#define SERIAL_FLUSHTX() SERIAL_OUT(flush)
#elif TX_BUFFER_SIZE > 0
#define SERIAL_FLUSHTX() SERIAL_OUT(flushTX)