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.
Revision 11:e9b490d21afb, committed 2020-01-06
- 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 |
--- 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;