Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of d7a_1x by
Diff: src/d7a_modem.cpp
- Revision:
- 56:da34fc11e760
- Parent:
- 55:5ea18a3a01b9
- Child:
- 58:38a366236bda
diff -r 5ea18a3a01b9 -r da34fc11e760 src/d7a_modem.cpp --- a/src/d7a_modem.cpp Wed Sep 07 09:32:01 2016 +0000 +++ b/src/d7a_modem.cpp Thu Sep 08 09:30:24 2016 +0000 @@ -53,6 +53,16 @@ return err; } +d7a_errors_t d7a_modem_close(void) +{ + FPRINT("\r\n"); + + g_modem_ctx.thread->terminate(); + *(g_modem_ctx.reset) = 1; + + return D7A_ERR_NONE; +} + d7a_errors_t d7a_modem_wait_boot( uint32_t millisec ) { FPRINT("(%d)\r\n", millisec);