diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c b/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c index 0bef8b2ae..bc9190984 100644 --- a/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c +++ b/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c @@ -80,7 +80,8 @@ static void can_lld_set_filters(uint32_t can2sb, rccEnableCAN1(FALSE);
/* Filters initialization.*/
- CAN1->FMR = (CAN1->FMR & 0xFFFF0000) | (can2sb << 8) | CAN_FMR_FINIT;
+ CAN1->FMR = (CAN1->FMR & 0xFFFF0000) | CAN_FMR_FINIT;
+ CAN1->FMR |= (can2sb << 8);
if (num > 0) {
uint32_t i, fmask;
|