Skip to content

Commit 577a0d9

Browse files
committed
STM targets: the free irq function was not well implemented
the index of the table was out of range
1 parent f027cf4 commit 577a0d9

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
@@ -104,7 +104,7 @@ void can_irq_free(can_t *obj)
104104

105105
can->IER &= ~(CAN_IT_FMP0 | CAN_IT_FMP1 | CAN_IT_TME | \
106106
CAN_IT_ERR | CAN_IT_EPV | CAN_IT_BOF);
107-
can_irq_ids[obj->can] = 0;
107+
can_irq_ids[obj->index] = 0;
108108
}
109109

110110
void can_free(can_t *obj)

0 commit comments

Comments
 (0)