test

Dependencies:   BLE_API mbed-dev-bin nRF51822

Fork of microbit-dal by Lancaster University

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
             {