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 ();
@@ -81,7 +81,7 @@ unsigned long NTPUtils::getTime(UDP & udp)
8181void NTPUtils::sendNTPpacket (UDP & udp)
8282{
8383 uint8_t ntp_packet_buf[NTP_PACKET_SIZE] = {0 };
84-
84+
8585 ntp_packet_buf[0 ] = 0b11100011 ;
8686 ntp_packet_buf[1 ] = 0 ;
8787 ntp_packet_buf[2 ] = 6 ;
@@ -90,7 +90,7 @@ void NTPUtils::sendNTPpacket(UDP & udp)
9090 ntp_packet_buf[13 ] = 0x4E ;
9191 ntp_packet_buf[14 ] = 49 ;
9292 ntp_packet_buf[15 ] = 52 ;
93-
93+
9494 udp.beginPacket (NTP_TIME_SERVER, NTP_TIME_SERVER_PORT);
9595 udp.write (ntp_packet_buf, NTP_PACKET_SIZE);
9696 udp.endPacket ();
You can’t perform that action at this time.
0 commit comments