Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: DnsClient.cpp
- Revision:
- 18:8d5738a6646e
- Parent:
- 16:269f652b4d0b
--- 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);