diff --git a/libraries/SrcWrapper/inc/stm32_def.h b/libraries/SrcWrapper/inc/stm32_def.h index 422c590cc5..e23db0ab94 100644 --- a/libraries/SrcWrapper/inc/stm32_def.h +++ b/libraries/SrcWrapper/inc/stm32_def.h @@ -97,10 +97,10 @@ #if !defined (ADC1) && defined (ADC) #define ADC1 ADC #endif -#ifndef CAN1 +#if !defined(CAN1) && defined(CAN) #define CAN1 CAN #endif -#ifndef DAC1 +#if !defined(DAC1) && defined(DAC) #define DAC1 DAC #endif