ublox-at-cellular-interface-n2xx

Files at this revision

API Documentation at this revision

Comitter:
mudassar0121
Date:
Mon Jan 06 14:49:22 2020 +0500
Parent:
14:7fb0bbdc4242
Commit message:
Replaced depreciated wait_ms with ThisThread::sleep_for

Changed in this revision

TESTS/unit_tests/default/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TESTS/unit_tests/default/main.cpp	Wed Feb 13 10:48:13 2019 +0500
+++ b/TESTS/unit_tests/default/main.cpp	Mon Jan 06 14:49:22 2020 +0500
@@ -304,7 +304,7 @@
                     TEST_ASSERT(strcmp(sender_address.get_ip_address(), host_address->get_ip_address()) == 0);
                     TEST_ASSERT(sender_address.get_port() == host_address->get_port());
                 }
-                wait_ms(10);
+                ThisThread::sleep_for(10);
             }
             timer.stop();
             timer.reset();
@@ -344,7 +344,7 @@
             count += x;
             tr_debug("%d byte(s) sent, %d left to send.", count, size - count);
         }
-        wait_ms(10);
+        ThisThread::sleep_for(10);
     }
     timer.stop();
 
@@ -374,7 +374,7 @@
             recv_size += x;
             tr_debug("%d byte(s) echoed back so far, %d to go.", recv_size, size - recv_size);
         }
-        wait_ms(10);
+        ThisThread::sleep_for(10);
     }
     TEST_ASSERT(recv_size == size);
     y = memcmp(send_data, recv_data, size);