Browse Source

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

randellhodges 4 years ago
parent
commit
ebdf8b6b1a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/core/serial.h

+ 1
- 1
Marlin/src/core/serial.h View File

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

Loading…
Cancel
Save