STM targets: the free irq function was not well implemented

the index of the table was out of range
pull/4165/head
adustm 2017-05-11 16:53:26 +02:00
parent f027cf429b
commit 577a0d972b
1 changed files with 1 additions and 1 deletions

View File

@ -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)