Skip to content

Commit 7244eb8

Browse files
committed
Merge pull request #1073 from marcuschangarm/master
Add missing functionality for disabling interrupts in SerialBase.h
2 parents bdaddaf + 9a5b7ad commit 7244eb8

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
@@ -105,6 +105,8 @@ class SerialBase {
105105
if((mptr != NULL) && (tptr != NULL)) {
106106
_irq[type].attach(tptr, mptr);
107107
serial_irq_set(&_serial, (SerialIrq)type, 1);
108+
} else {
109+
serial_irq_set(&_serial, (SerialIrq)type, 0);
108110
}
109111
}
110112

0 commit comments

Comments
 (0)