![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
mbed os example for Wislink RAK2011
Diff: main.cpp
- Revision:
- 13:4bea5334b419
- Parent:
- 11:23ea0907186e
- Child:
- 21:e356e039f917
--- a/main.cpp Wed Jun 20 07:30:21 2018 +0100 +++ b/main.cpp Thu Jun 21 12:15:21 2018 +0100 @@ -106,13 +106,13 @@ { while (true) { Thread::wait(4000); - if (!iface->is_connected()) { + if (iface && iface->is_connected()) { + break; + } else { trace_mutex.lock(); printf("."); fflush(stdout); trace_mutex.unlock(); - } else { - break; } } }