8000 stm32/can: Fix clearing filters on CAN3 (bxCAN). · micropython/micropython@dca3580 · GitHub
[go: up one dir, main page]

Skip to content

Commit dca3580

Browse files
committed
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 495ce91 commit dca3580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/stm32/can.c

Lines changed: 1 addition & 1 deletion
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)
0