浏览代码

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

randellhodges 5 年前
父节点
当前提交
ebdf8b6b1a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/core/serial.h

+ 1
- 1
Marlin/src/core/serial.h 查看文件

@@ -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)

正在加载...
取消
保存