mbed library sources

Dependents:   RPC_Serial_V_mac

Revision:
532:47d2b67c511f
Parent:
526:c320967f86b9
Child:
564:536c9fb088a0
--- 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);
         }
     }