ublox-cellular-base-n2xx

Files at this revision

API Documentation at this revision

Comitter:
mudassar0121
Date:
Mon Jan 06 14:50:14 2020 +0500
Parent:
10:1afe5ed24f0c
Commit message:
Replaced depreciated wait_ms with ThisThread::sleep_for

Changed in this revision

UbloxCellularBaseN2xx.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1afe5ed24f0c -r e9b490d21afb UbloxCellularBaseN2xx.cpp
--- a/UbloxCellularBaseN2xx.cpp	Tue Jan 09 14:35:43 2018 +0000
+++ b/UbloxCellularBaseN2xx.cpp	Mon Jan 06 14:50:14 2020 +0500
@@ -656,7 +656,7 @@
     onboard_modem_init();
     /* Give SARA-N2XX time to reset */
     tr_debug("Waiting for 5 seconds (booting SARA-N2xx)...");
-    wait_ms(5000);
+    ThisThread::sleep_for(5000);
 
     at_set_timeout(1000);
     for (int retry_count = 0; !success && (retry_count < 20); retry_count++) {      
@@ -852,7 +852,7 @@
 
     if (cops(2)) {
         // we need to wait here so that the internal status of the module 
-        wait_ms(1000);
+        ThisThread::sleep_for(1000);
         
         _dev_info.reg_status_csd = CSD_NOT_REGISTERED_NOT_SEARCHING;
         _dev_info.reg_status_psd = PSD_NOT_REGISTERED_NOT_SEARCHING;