Skip to content

Commit 5a121b9

Browse files
authored
Merge pull request #14612 from uwrobotics/stm-slave-can-filter-fix
CAN: fix slave CAN start filter bank setup
2 parents b80128f + bda3668 commit 5a121b9

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)