mirror of https://github.com/ARMmbed/mbed-os.git
STM targets: the free irq function was not well implemented
the index of the table was out of rangepull/4165/head
parent
f027cf429b
commit
577a0d972b
|
@ -104,7 +104,7 @@ void can_irq_free(can_t *obj)
|
|||
|
||||
can->IER &= ~(CAN_IT_FMP0 | CAN_IT_FMP1 | CAN_IT_TME | \
|
||||
CAN_IT_ERR | CAN_IT_EPV | CAN_IT_BOF);
|
||||
can_irq_ids[obj->can] = 0;
|
||||
can_irq_ids[obj->index] = 0;
|
||||
}
|
||||
|
||||
void can_free(can_t *obj)
|
||||
|
|
Loading…
Reference in New Issue