Skip to content

Commit 9a5b7ad

Browse files
author
Marcus Chang
committed
Added missing functionality for disabling interrupts in SerialBase.h
1 parent 809d8aa commit 9a5b7ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/mbed/api/SerialBase.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ class SerialBase {
100100
if((mptr != NULL) && (tptr != NULL)) {
101101
_irq[type].attach(tptr, mptr);
102102
serial_irq_set(&_serial, (SerialIrq)type, 1);
103+
} else {
104+
serial_irq_set(&_serial, (SerialIrq)type, 0);
103105
}
104106
}
105107

0 commit comments

Comments
 (0)