From f5d5f53914d46dfccdd21399e44f8af71a8f345a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 11 Jun 2022 18:19:53 -0400 Subject: stm32: Add support for disabling the canbus filter Signed-off-by: Kevin O'Connor --- src/stm32/fdcan.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stm32/fdcan.c') 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 */ -- cgit v1.2.3-70-g09d2