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: DhcpClient.cpp
- Revision:
- 18:8d5738a6646e
- Parent:
- 17:1123c3fe86ca
- Child:
- 19:9d990bd6d9d0
diff -r 1123c3fe86ca -r 8d5738a6646e DhcpClient.cpp
--- 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