Cellular example code for Seeed Wio 3G
Fork of Wio_3G-example-cellular by
Diff: main.cpp
- Revision:
- 13:4bea5334b419
- Parent:
- 11:23ea0907186e
diff -r 393c693226f4 -r 4bea5334b419 main.cpp --- 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; } } }