fdsg

Dependencies:   BLE_API MicroBitEffectsPedal nRF51822

Fork of microbit-dal by Lancaster University

Revision:
22:23d7b9a4b082
Parent:
5:f0f1cecd65d8
Child:
23:6055f6c19fa6
--- a/source/drivers/MicroBitMessageBus.cpp	Wed Jul 13 12:17:53 2016 +0100
+++ b/source/drivers/MicroBitMessageBus.cpp	Wed Jul 13 12:17:54 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
             {