Browse Source

Fix SAMD Serial name macro (#19765)

Jason Smith 3 years ago
parent
commit
3ccb3801f2
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/HAL/SAMD51/HAL.h

+ 2
- 1
Marlin/src/HAL/SAMD51/HAL.h View File

@@ -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…
Cancel
Save