diff --git a/src/main/msp/msp_serial.h b/src/main/msp/msp_serial.h index a080408fc7..315e003060 100644 --- a/src/main/msp/msp_serial.h +++ b/src/main/msp/msp_serial.h @@ -27,7 +27,9 @@ #include "msp/msp.h" // Each MSP port requires state and a receive buffer, revisit this default if someone needs more than 3 MSP ports. +#ifndef MAX_MSP_PORT_COUNT #define MAX_MSP_PORT_COUNT 3 +#endif typedef enum { PORT_IDLE,