We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5ecf4 commit 42d1123Copy full SHA for 42d1123
src/utility/NTPUtils.cpp
@@ -59,6 +59,7 @@ unsigned long NTPUtils::getTime() {
59
while (!Udp.parsePacket() && (millis() - start < 10000)){}
60
if (millis() - start >= 1000) {
61
//timeout reached
62
+ Udp.stop();
63
return 0;
64
}
65
Udp.read(packetBuffer, NTP_PACKET_SIZE);
0 commit comments