Lancaster University's (short term!) clone of mbed-src for micro:bit. This is a copy of the github branch https://github.com/lancaster-university/mbed-classic
Fork of mbed-src by
Diff: common/InterruptManager.cpp
- Revision:
- 221:8276e3a4886f
- Parent:
- 15:4892fe388435
- Child:
- 262:85569914dbe0
diff -r aa774fb95d17 -r 8276e3a4886f common/InterruptManager.cpp --- a/common/InterruptManager.cpp Tue Jun 03 10:30:56 2014 +0100 +++ b/common/InterruptManager.cpp Tue Jun 03 11:30:07 2014 +0100 @@ -58,7 +58,7 @@ bool InterruptManager::remove_handler(pFunctionPointer_t handler, IRQn_Type irq) { int irq_pos = get_irq_index(irq); - + if (NULL == _chains[irq_pos]) return false; if (!_chains[irq_pos]->remove(handler))