Skip to content

Commit 3a2cfb1

Browse files
committed
can_driver_stm32: fix return value of can_driver_stm32_load_tx_I
1 parent 752f3c7 commit 3a2cfb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/can_driver_stm32/can_driver_stm32h7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ bool can_driver_stm32_load_tx_I(void* ctx, uint8_t mb_idx, struct can_frame_s* f
362362
//Set Add Request
363363
instance->can->TXBAR = (1 << mb_idx);
364364

365-
return mb_idx;
365+
return true;
366366
}
367367

368368
static bool can_driver_stm32_retreive_rx_frame_I(struct can_driver_stm32_instance_s* instance,

0 commit comments

Comments
 (0)