diff --git a/Marlin/src/inc/SanityCheck.h b/Marlin/src/inc/SanityCheck.h index 7c8447c003..b0d6758dc4 100644 --- a/Marlin/src/inc/SanityCheck.h +++ b/Marlin/src/inc/SanityCheck.h @@ -365,7 +365,7 @@ #error "Set SERIAL_PORT to the port on your board. Usually this is 0." #endif -#if SERIAL_PORT_2 && NUM_SERIAL < 2 +#if defined(SERIAL_PORT_2) && NUM_SERIAL < 2 #error "SERIAL_PORT_2 is not supported for your MOTHERBOARD. Disable it to continue." #endif