ublox-cellular-base-n2xx

Revision:
11:e9b490d21afb
Parent:
10:1afe5ed24f0c
--- 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;