Skip to content

Commit 64952d4

Browse files
committed
Merge pull request #114 from mazgch/master
Avoid hardfault when CAN object is destructed.
2 parents 5278dd4 + a3a16b3 commit 64952d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/mbed/common/CAN.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ CAN::CAN(PinName rd, PinName td) {
2727
}
2828

2929
CAN::~CAN() {
30-
can_free(&_can);
3130
can_irq_free(&_can);
31+
can_free(&_can);
3232
}
3333

3434
int CAN::frequency(int f) {

0 commit comments

Comments
 (0)