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)
5454 udp.stop ();
5555 return 0 ;
5656 }
57-
57+
5858 uint8_t ntp_packet_buf[NTP_PACKET_SIZE];
5959 udp.read (ntp_packet_buf, NTP_PACKET_SIZE);
6060 udp.stop ();
@@ -75,7 +75,7 @@ unsigned long NTPUtils::getTime(UDP & udp)
7575void NTPUtils::sendNTPpacket (UDP & udp)
7676{
7777 uint8_t ntp_packet_buf[NTP_PACKET_SIZE] = {0 };
78-
78+
7979 ntp_packet_buf[0 ] = 0b11100011 ;
8080 ntp_packet_buf[1 ] = 0 ;
8181 ntp_packet_buf[2 ] = 6 ;
@@ -84,7 +84,7 @@ void NTPUtils::sendNTPpacket(UDP & udp)
8484 ntp_packet_buf[13 ] = 0x4E ;
8585 ntp_packet_buf[14 ] = 49 ;
8686 ntp_packet_buf[15 ] = 52 ;
87-
87+
8888 udp.beginPacket (NTP_TIME_SERVER, NTP_TIME_SERVER_PORT);
8989 udp.write (ntp_packet_buf, NTP_PACKET_SIZE);
9090 udp.endPacket ();
You can’t perform that action at this time.
0 commit comments