Skip to content

Commit 3a60f32

Browse files
projectgusdpgeorge
authored andcommitted
stm32/can: Fix clearing filters on CAN3 (bxCAN).
HAL argument is ignored for CAN1, CAN2 but needed for CAN3. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 221a4ec commit 3a60f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/stm32/can.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void can_clearfilter(pyb_can_obj_t *self, uint32_t f, uint8_t bank) {
174174
filter.FilterActivation = DISABLE;
175175
filter.BankNumber = bank;
176176

177-
HAL_CAN_ConfigFilter(NULL, &filter);
177+
HAL_CAN_ConfigFilter(&self->can, &filter);
178178
}
179179

180180
int can_receive(CAN_HandleTypeDef *can, int fifo, CanRxMsgTypeDef *msg, uint8_t *data, uint32_t timeout_ms) {

0 commit comments

Comments
 (0)