Public fork of mbed-src to add generic stm32f030k6 target
Fork of mbed-src by
Diff: api/SerialBase.h
- Revision:
- 531:47d2b67c511f
- Parent:
- 525:c320967f86b9
- Child:
- 563: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); } }