Upgrade to latest mbed-drivers version
diff --git a/yotta/data/example-selftest/main.cpp b/yotta/data/example-selftest/main.cpp
index 1eed97f..06ab7e9 100644
--- a/yotta/data/example-selftest/main.cpp
+++ b/yotta/data/example-selftest/main.cpp
@@ -244,8 +244,9 @@
#if defined(TARGET_LIKE_MBED)
#include "mbed/test_env.h"
+#include "minar/minar.h"
-int main() {
+static void run() {
/* Use 115200 bps for consistency with other examples */
Serial pc(USBTX, USBRX);
pc.baud(115200);
@@ -257,6 +258,10 @@
MBED_HOSTTEST_RESULT(selftest(0, NULL) == 0);
}
+void app_start(int, char*[]) {
+ minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
+}
+
#else
int main() {