123

Revision:
17:1123c3fe86ca
Parent:
15:53715cc81c63
Child:
18:8d5738a6646e
--- a/DhcpClient.cpp	Fri Jun 05 15:12:21 2020 +0000
+++ b/DhcpClient.cpp	Fri Jun 05 15:21:49 2020 +0000
@@ -319,8 +319,11 @@
         if (timer.read() > responseTimeout) {
             return 255;
         }
-
+#if MBED_MAJOR_VERSION == 2
         wait_ms(50);
+#else
+        thread_sleep_for(50);
+#endif
     }
 
     // start reading in the packet