From b3f22825dda46bf5991985b2dd9170245794aa0a Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 20 Jun 2024 10:24:55 +0200 Subject: [PATCH] NTPUtils: fix whitespaces --- src/utility/time/NTPUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utility/time/NTPUtils.cpp b/src/utility/time/NTPUtils.cpp index 24c626a7..54e5b057 100644 --- a/src/utility/time/NTPUtils.cpp +++ b/src/utility/time/NTPUtils.cpp @@ -54,7 +54,7 @@ unsigned long NTPUtils::getTime(UDP & udp) udp.stop(); return 0; } - + uint8_t ntp_packet_buf[NTP_PACKET_SIZE]; udp.read(ntp_packet_buf, NTP_PACKET_SIZE); udp.stop(); @@ -75,7 +75,7 @@ unsigned long NTPUtils::getTime(UDP & udp) void NTPUtils::sendNTPpacket(UDP & udp) { uint8_t ntp_packet_buf[NTP_PACKET_SIZE] = {0}; - + ntp_packet_buf[0] = 0b11100011; ntp_packet_buf[1] = 0; ntp_packet_buf[2] = 6; @@ -84,7 +84,7 @@ void NTPUtils::sendNTPpacket(UDP & udp) ntp_packet_buf[13] = 0x4E; ntp_packet_buf[14] = 49; ntp_packet_buf[15] = 52; - + udp.beginPacket(NTP_TIME_SERVER, NTP_TIME_SERVER_PORT); udp.write(ntp_packet_buf, NTP_PACKET_SIZE); udp.endPacket();