Fix incorrect check from last commit on stm32F11

This commit is contained in:
Josh Stewart 2023-10-13 14:01:17 +11:00
parent 059f4b3adf
commit 7cca27ee28
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@
#include "stm32f3xx_ll_tim.h"
#elif defined(STM32F4)
#include "stm32f4xx_ll_tim.h"
#include "stm32f4xx_hal_can.h"
#ifndef HAL_CAN_MODULE_ENABLED
#if defined(STM32F407xx) && !defined(HAL_CAN_MODULE_ENABLED)
#warning "CAN module is not enabled. Internal CAN will NOT be available"
#endif
#else /*Default should be STM32F4*/