Skip to content

Commit 9732cdc

Browse files
committed
Updated comments appropriately
1 parent 2cc08cf commit 9732cdc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

targets/TARGET_STM/can_api.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,8 @@ int can_write(can_t *obj, CAN_Message msg, int cc)
967967

968968
int can_read(can_t *obj, CAN_Message *msg, int handle)
969969
{
970-
971-
//handle is the FIFO number
972-
973-
int rxfifo_default = DEFAULT_RXFIFO; //FIFO selection cannot be controlled by software for STM32, default FIFO is 0
970+
//FIFO selection cannot be controlled by software for STM32, default FIFO is 0, hence handle is not used
971+
int rxfifo_default = DEFAULT_RXFIFO;
974972
CAN_TypeDef *can = obj->CanHandle.Instance;
975973

976974
// check FPM0 which holds the pending message count in FIFO 0

0 commit comments

Comments
 (0)