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:
- 25:27299423d813
- Parent:
- 23:6055f6c19fa6
- Child:
- 34:9162efc289ca
--- a/source/drivers/MicroBitMessageBus.cpp	Wed Jul 13 12:17:57 2016 +0100
+++ b/source/drivers/MicroBitMessageBus.cpp	Wed Jul 13 12:17:58 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
             {