mbed library sources

Fork of mbed-src by mbed official

Revision:
531:47d2b67c511f
Parent:
525:c320967f86b9
Child:
563:536c9fb088a0
diff -r 2939f5396008 -r 47d2b67c511f api/SerialBase.h
--- a/api/SerialBase.h	Thu Apr 30 09:15:06 2015 +0100
+++ b/api/SerialBase.h	Thu Apr 30 13:00:08 2015 +0100
@@ -105,6 +105,8 @@
         if((mptr != NULL) && (tptr != NULL)) {
             _irq[type].attach(tptr, mptr);
             serial_irq_set(&_serial, (SerialIrq)type, 1);
+        } else {
+            serial_irq_set(&_serial, (SerialIrq)type, 0);
         }
     }