Trond Enger / d7a_1x

Fork of d7a_1x by WizziLab

Revision:
56:da34fc11e760
Parent:
55:5ea18a3a01b9
Child:
58:38a366236bda
--- 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);