The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: SerialBase.h
- Revision:
- 99:dbbf35b96557
- Parent:
- 98:8ab26030e058
- Child:
- 102:da0ca467f8b5
--- a/SerialBase.h Wed Apr 29 10:16:23 2015 +0100 +++ b/SerialBase.h Wed May 13 08:08:21 2015 +0200 @@ -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); } }