123

Revision:
18:8d5738a6646e
Parent:
17:1123c3fe86ca
Child:
19:543c2d21e510
--- a/DhcpClient.cpp	Fri Jun 05 15:21:49 2020 +0000
+++ b/DhcpClient.cpp	Thu Jul 23 15:30:54 2020 +0000
@@ -307,7 +307,7 @@
  * @param
  * @retval
  */
-uint8_t DhcpClient::parseDhcpResponse(unsigned long responseTimeout, uint32_t& transactionId)
+uint8_t DhcpClient::parseDhcpResponse(time_t responseTimeout, uint32_t& transactionId)
 {
     volatile uint8_t    type = 0;
     uint8_t             opt_len = 0;
@@ -316,7 +316,7 @@
     timer.start();
 
     while (_dhcpUdpSocket.parsePacket() <= 0) {
-        if (timer.read() > responseTimeout) {
+        if ((time_t)timer.read_ms() > responseTimeout) {
             return 255;
         }
 #if MBED_MAJOR_VERSION == 2