diff options
Diffstat (limited to 'src/stm32/fdcan.c')
-rwxr-xr-x | src/stm32/fdcan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stm32/fdcan.c b/src/stm32/fdcan.c index cf2cc276..3af9ffa8 100755 --- a/src/stm32/fdcan.c +++ b/src/stm32/fdcan.c @@ -113,6 +113,8 @@ can_filter(uint32_t index, uint32_t id) void canbus_set_filter(uint32_t id) { + if (!CONFIG_CANBUS_FILTER) + return; /* Request initialisation */ SOC_CAN->CCCR |= FDCAN_CCCR_INIT; /* Wait the acknowledge */ |