瀏覽代碼

Fix SAMD Serial name macro (#19765)

Jason Smith 3 年之前
父節點
當前提交
3ccb3801f2
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      Marlin/src/HAL/SAMD51/HAL.h

+ 2
- 1
Marlin/src/HAL/SAMD51/HAL.h 查看文件

@@ -35,7 +35,8 @@
35 35
 
36 36
   // MYSERIAL0 required before MarlinSerial includes!
37 37
 
38
-  #define _MSERIAL(X) Serial##X
38
+  #define __MSERIAL(X) Serial##X
39
+  #define _MSERIAL(X) __MSERIAL(X)
39 40
   #define MSERIAL(X) _MSERIAL(INCREMENT(X))
40 41
 
41 42
   #if SERIAL_PORT == -1

Loading…
取消
儲存