Selaa lähdekoodia

Fix SAMD Serial name macro (#19765)

Jason Smith 3 vuotta sitten
vanhempi
commit
3ccb3801f2
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      Marlin/src/HAL/SAMD51/HAL.h

+ 2
- 1
Marlin/src/HAL/SAMD51/HAL.h Näytä tiedosto

35
 
35
 
36
   // MYSERIAL0 required before MarlinSerial includes!
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
   #define MSERIAL(X) _MSERIAL(INCREMENT(X))
40
   #define MSERIAL(X) _MSERIAL(INCREMENT(X))
40
 
41
 
41
   #if SERIAL_PORT == -1
42
   #if SERIAL_PORT == -1

Loading…
Peruuta
Tallenna