ublox-at-cellular-interface-ext
Dependencies: ublox-at-cellular-interface
Revision 36:6a6ee1adff84, committed 2020-01-06
- Comitter:
- mudassar0121
- Date:
- Mon Jan 06 14:43:04 2020 +0500
- Parent:
- 34:4f08b9dd8d03
- Commit message:
- Replaced depreciated wait_ms with ThisThread::sleep_for
Changed in this revision
--- a/TESTS/unit_tests/cell-locate/main.cpp Fri Jan 03 15:46:29 2020 +0500 +++ b/TESTS/unit_tests/cell-locate/main.cpp Mon Jan 06 14:43:04 2020 +0500 @@ -196,7 +196,7 @@ TEST_ASSERT(pDriver->disconnect() == 0); // Wait for printfs to leave the building or the test result string gets messed up - wait_ms(500); + ThisThread::sleep_for(500); } // Test Cell Locate talking to a TCP server @@ -227,7 +227,7 @@ TEST_ASSERT(pDriver->disconnect() == 0); // Wait for printfs to leave the building or the test result string gets messed up - wait_ms(500); + ThisThread::sleep_for(500); } // Tidy up after testing so as not to screw with the test output strings
--- a/TESTS/unit_tests/ftp/main.cpp Fri Jan 03 15:46:29 2020 +0500 +++ b/TESTS/unit_tests/ftp/main.cpp Mon Jan 06 14:43:04 2020 +0500 @@ -220,7 +220,7 @@ TEST_ASSERT(pDriver->set_mno_profile(UbloxATCellularInterface::STANDARD_EU)); TEST_ASSERT(pDriver->reboot_modem()); tr_debug("Reboot successful\n"); - wait_ms(5000); + ThisThread::sleep_for(5000); } } TEST_ASSERT(pDriver->init(MBED_CONF_APP_DEFAULT_PIN)); @@ -500,7 +500,7 @@ TEST_ASSERT(pDriver->disconnect() == 0); // Wait for printfs to leave the building or the test result string gets messed up - wait_ms(500); + ThisThread::sleep_for(500); } // ----------------------------------------------------------------
--- a/TESTS/unit_tests/http/main.cpp Fri Jan 03 15:46:29 2020 +0500 +++ b/TESTS/unit_tests/http/main.cpp Mon Jan 06 14:43:04 2020 +0500 @@ -124,7 +124,7 @@ TEST_ASSERT(pDriver->set_mno_profile(UbloxATCellularInterface::STANDARD_EU)); TEST_ASSERT(pDriver->reboot_modem()); tr_debug("Reboot successful\n"); - wait_ms(5000); + ThisThread::sleep_for(5000); } } TEST_ASSERT(pDriver->init(MBED_CONF_APP_DEFAULT_PIN)); @@ -220,7 +220,7 @@ TEST_ASSERT(pDriver->httpFreeProfile(profile)); TEST_ASSERT(pDriver->disconnect() == 0); // Wait for printfs to leave the building or the test result string gets messed up - wait_ms(500); + ThisThread::sleep_for(500); #ifdef TARGET_UBLOX_C027 pDriver->set_functionality_mode(UbloxATCellularInterfaceExt::FUNC_MIN); @@ -273,7 +273,7 @@ TEST_ASSERT(pDriver->httpFreeProfile(profile)); TEST_ASSERT(pDriver->disconnect() == 0); // Wait for printfs to leave the building or the test result string gets messed up - wait_ms(500); + ThisThread::sleep_for(500); #ifdef TARGET_UBLOX_C027 pDriver->set_functionality_mode(UbloxATCellularInterfaceExt::FUNC_MIN); @@ -341,7 +341,7 @@ TEST_ASSERT(pDriver->disconnect() == 0); // Wait for printfs to leave the building or the test result string gets messed up - wait_ms(500); + ThisThread::sleep_for(500); } // ----------------------------------------------------------------
--- a/UbloxATCellularInterfaceExt.cpp Fri Jan 03 15:46:29 2020 +0500 +++ b/UbloxATCellularInterfaceExt.cpp Mon Jan 06 14:43:04 2020 +0500 @@ -713,7 +713,7 @@ _httpProfiles[httpProfile].pending = false; if (_httpProfiles[httpProfile].result == 1) { // Leave a short delay to make sure the file has been written - wait_ms(100); + ThisThread::sleep_for(100); // HTTP command successfully executed read_length = readFile(rspFile, buf, len);