File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ unsigned long NTPUtils::getTime(UDP & udp)
54
54
udp.stop ();
55
55
return 0 ;
56
56
}
57
-
57
+
58
58
uint8_t ntp_packet_buf[NTP_PACKET_SIZE];
59
59
udp.read (ntp_packet_buf, NTP_PACKET_SIZE);
60
60
udp.stop ();
@@ -75,7 +75,7 @@ unsigned long NTPUtils::getTime(UDP & udp)
75
75
void NTPUtils::sendNTPpacket (UDP & udp)
76
76
{
77
77
uint8_t ntp_packet_buf[NTP_PACKET_SIZE] = {0 };
78
-
78
+
79
79
ntp_packet_buf[0 ] = 0b11100011 ;
80
80
ntp_packet_buf[1 ] = 0 ;
81
81
ntp_packet_buf[2 ] = 6 ;
@@ -84,7 +84,7 @@ void NTPUtils::sendNTPpacket(UDP & udp)
84
84
ntp_packet_buf[13 ] = 0x4E ;
85
85
ntp_packet_buf[14 ] = 49 ;
86
86
ntp_packet_buf[15 ] = 52 ;
87
-
87
+
88
88
udp.beginPacket (NTP_TIME_SERVER, NTP_TIME_SERVER_PORT);
89
89
udp.write (ntp_packet_buf, NTP_PACKET_SIZE);
90
90
udp.endPacket ();
You can’t perform that action at this time.
0 commit comments