diff --git a/drivers/slipdev/include/slipdev_params.h b/drivers/slipdev/include/slipdev_params.h index d9e44cc2f6..c1b8ab155d 100644 --- a/drivers/slipdev/include/slipdev_params.h +++ b/drivers/slipdev/include/slipdev_params.h @@ -34,9 +34,13 @@ extern "C" { */ #ifndef SLIPDEV_PARAM_UART # ifndef MODULE_SLIPDEV_STDIO -# define SLIPDEV_PARAM_UART (UART_DEV(0)) +# ifdef MODULE_USBUS_CDC_ACM +# define SLIPDEV_PARAM_UART UART_DEV(0) +# else +# define SLIPDEV_PARAM_UART UART_DEV(1) +# endif # else /* MODULE_SLIPDEV_STDIO */ -# define SLIPDEV_PARAM_UART (STDIO_UART_DEV) +# define SLIPDEV_PARAM_UART STDIO_UART_DEV # endif /* MODULE_SLIPDEV_STDIO */ #endif /* SLIPDEV_PARAM_UART */ #ifndef SLIPDEV_PARAM_BAUDRATE