GNSS

Dependents:   ublox-at-cellular-interface-ext

Fork of ublox-at-cellular-interface by u-blox

Files at this revision

API Documentation at this revision

Comitter:
fahim.alavi@u-blox.com
Date:
Wed Jan 30 16:37:21 2019 +0500
Parent:
21:1f34f8d0c850
Child:
23:2e8e1c573e18
Commit message:
Made changes not to disconnect modem stack for target C030-R41xM

Changed in this revision

UbloxATCellularInterface.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/UbloxATCellularInterface.cpp	Fri Jan 25 11:40:36 2019 +0500
+++ b/UbloxATCellularInterface.cpp	Wed Jan 30 16:37:21 2019 +0500
@@ -1120,8 +1120,11 @@
 nsapi_error_t UbloxATCellularInterface::disconnect()
 {
     nsapi_error_t nsapi_error = NSAPI_ERROR_DEVICE_ERROR;
-
+#ifdef TARGET_UBLOX_C030_R41XM
+    if (nwk_deregistration()) {
+#else
     if (disconnect_modem_stack() && nwk_deregistration()) {
+#endif
         nsapi_error = NSAPI_ERROR_OK;
     }