Skip to content

Commit bda3668

Browse files
committed
CAN: fix slave CAN start filter bank setup
1 parent 0a6f769 commit bda3668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/can_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ int can_filter(can_t *obj, uint32_t id, uint32_t mask, CANFormat format, int32_t
11241124

11251125
sFilterConfig.FilterFIFOAssignment = 0;
11261126
sFilterConfig.FilterActivation = ENABLE;
1127-
sFilterConfig.BankNumber = 14 + handle;
1127+
sFilterConfig.BankNumber = 14;
11281128

11291129
if (HAL_CAN_ConfigFilter(&obj->CanHandle, &sFilterConfig) == HAL_OK)
11301130
{

0 commit comments

Comments
 (0)