A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
Diff: udp/ntp/ntpclientreply.c
- Revision:
- 125:8c84daac38ab
- Parent:
- 124:6e558721ec1c
- Child:
- 138:5ff0c7069300
--- a/udp/ntp/ntpclientreply.c Fri Feb 22 08:41:47 2019 +0000 +++ b/udp/ntp/ntpclientreply.c Fri Feb 22 11:26:55 2019 +0000 @@ -29,7 +29,7 @@ //Check the received timestamp delay clktime oriTicks = NtpTimeStampToClkTime(ori); clktime ntpTicks = NtpTimeStampToClkTime(rec); - clktime clkTicks = ClkTimeGet(); + clktime clkTicks = ClkTimeGet(); //Use the costly time this instant clktime roundTripTicks = clkTicks - oriTicks; clktime delayMs = roundTripTicks >> CLK_TIME_ONE_MS_ISH_SHIFT;