123

Revision:
18:8d5738a6646e
Parent:
16:269f652b4d0b
Child:
19:543c2d21e510
diff -r 1123c3fe86ca -r 8d5738a6646e DnsClient.cpp
--- a/DnsClient.cpp	Fri Jun 05 15:21:49 2020 +0000
+++ b/DnsClient.cpp	Thu Jul 23 15:30:54 2020 +0000
@@ -274,7 +274,7 @@
  * @param
  * @retval
  */
-int16_t DnsClient::processResponse(uint16_t aTimeout, IpAddress& aAddress)
+int16_t DnsClient::processResponse(time_t aTimeout, IpAddress& aAddress)
 {
     time_t  startTime = time(NULL);
     Timer   timer;
@@ -283,7 +283,7 @@
 
     // Wait for a response packet
     while (iUdp.parsePacket() <= 0) {
-        if (timer.read() > aTimeout)
+        if ((time_t)timer.read_ms() > aTimeout)
             return TIMED_OUT;
 #if MBED_MAJOR_VERSION == 2
         wait_ms(50);