test
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/drivers/MicroBitMessageBus.cpp
- Revision:
- 37:b624ae5e94a5
- Parent:
- 35:8ce23bc1af38
- Child:
- 41:da05ec75cd5d
diff -r 6837feb07da4 -r b624ae5e94a5 source/drivers/MicroBitMessageBus.cpp --- a/source/drivers/MicroBitMessageBus.cpp Wed Jul 13 12:18:15 2016 +0100 +++ b/source/drivers/MicroBitMessageBus.cpp Wed Jul 13 12:18:16 2016 +0100 @@ -237,7 +237,7 @@ // Walk this list of event handlers. Delete any that match the given listener. while (l != NULL) { - if (l->flags & MESSAGE_BUS_LISTENER_DELETING && !l->flags & MESSAGE_BUS_LISTENER_BUSY) + if ((l->flags & MESSAGE_BUS_LISTENER_DELETING) && !(l->flags & MESSAGE_BUS_LISTENER_BUSY)) { if (p == NULL) listeners = l->next;