Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed-dev-bin nRF51822
Diff: source/drivers/MicroBitMessageBus.cpp
- Revision:
- 23:6055f6c19fa6
- Parent:
- 22:23d7b9a4b082
- Child:
- 25:27299423d813
diff -r 23d7b9a4b082 -r 6055f6c19fa6 source/drivers/MicroBitMessageBus.cpp
--- a/source/drivers/MicroBitMessageBus.cpp Wed Jul 13 12:17:54 2016 +0100
+++ b/source/drivers/MicroBitMessageBus.cpp Wed Jul 13 12:17:56 2016 +0100
@@ -375,10 +375,10 @@
// Otherwise, we invoke it in a 'fork on block' context, that will automatically create a fiber
// should the event handler attempt a blocking operation, but doesn't have the overhead
// of creating a fiber needlessly. (cool huh?)
- if (l->flags & MESSAGE_BUS_LISTENER_NONBLOCKING || !fiber_scheduler_running())
- async_callback(l);
- else
- invoke(async_callback, l);
+ if (l->flags & MESSAGE_BUS_LISTENER_NONBLOCKING || !fiber_scheduler_running())
+ async_callback(l);
+ else
+ invoke(async_callback, l);
}
else
{