Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: main.cpp
- Revision:
- 30:daa499571db7
- Parent:
- 29:853741b9ea3b
- Child:
- 32:56804dd00193
--- a/main.cpp Mon May 26 08:10:27 2014 +0000 +++ b/main.cpp Mon May 26 08:12:14 2014 +0000 @@ -17,9 +17,9 @@ io_init(); puts("IO initialized."); + c027.mdmPower(true); c027.mdmWakeup(); c027.mdmReset(); - c027.mdmPower(true); Thread::wait(2000); puts("Initializing modem."); @@ -77,6 +77,7 @@ puts("Restarting program..."); } while (ret); + mdm.disconnect(); c027.mdmPower(false); return 0;