From 7cca27ee28705b8daa932605ea61c81350d61b36 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Fri, 13 Oct 2023 14:01:17 +1100 Subject: [PATCH] Fix incorrect check from last commit on stm32F11 --- speeduino/board_stm32_official.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/speeduino/board_stm32_official.h b/speeduino/board_stm32_official.h index c2a84d56..c32acc9d 100644 --- a/speeduino/board_stm32_official.h +++ b/speeduino/board_stm32_official.h @@ -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*/