mbed library sources modified for open wear

Dependents:   openwear-lifelogger-example

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Thu Nov 21 16:45:05 2013 +0000
Parent:
48:40454ec5d50d
Child:
50:b08ceb75017d
Commit message:
Synchronized with git revision 64952d4f7eba2fb44b86ba5e727da2ef03d5710d

Full URL: https://github.com/mbedmicro/mbed/commit/64952d4f7eba2fb44b86ba5e727da2ef03d5710d/

Avoid hardfault when CAN object is destructed.

Changed in this revision

common/CAN.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/common/CAN.cpp	Thu Nov 21 10:45:04 2013 +0000
+++ b/common/CAN.cpp	Thu Nov 21 16:45:05 2013 +0000
@@ -27,8 +27,8 @@
 }
 
 CAN::~CAN() {
+    can_irq_free(&_can);
     can_free(&_can);
-    can_irq_free(&_can);
 }
 
 int CAN::frequency(int f) {