Przeglądaj źródła

Fix SERIAL_PORT_2 sanity check

Scott Lahteine 6 lat temu
rodzic
commit
e2ab78d876
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      Marlin/src/inc/SanityCheck.h

+ 1
- 1
Marlin/src/inc/SanityCheck.h Wyświetl plik

365
   #error "Set SERIAL_PORT to the port on your board. Usually this is 0."
365
   #error "Set SERIAL_PORT to the port on your board. Usually this is 0."
366
 #endif
366
 #endif
367
 
367
 
368
-#if SERIAL_PORT_2 && NUM_SERIAL < 2
368
+#if defined(SERIAL_PORT_2) && NUM_SERIAL < 2
369
   #error "SERIAL_PORT_2 is not supported for your MOTHERBOARD. Disable it to continue."
369
   #error "SERIAL_PORT_2 is not supported for your MOTHERBOARD. Disable it to continue."
370
 #endif
370
 #endif
371
 
371
 

Ładowanie…
Anuluj
Zapisz