Skip to content

UdpNtpClient rewritten in a clearer, more pedantic fashion. #2008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 1, 2016
Merged

UdpNtpClient rewritten in a clearer, more pedantic fashion. #2008

merged 3 commits into from
Jun 1, 2016

Conversation

mgaman
Copy link
Contributor

@mgaman mgaman commented May 9, 2016

I have modified the classic UdpNtpCLient sketch by adding the structure of the Ntp data packet (as described in RFC1305) and referring to fields within the structure.
My objective is to encourage the writing of code easier to maintain, especially by someone other than the original author.

* see https://www.eecis.udel.edu/~mills/database/rfc/rfc1305/rfc1305c.pdf
* https://tools.ietf.org/html/rfc1305
*/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is considered common good practice to start every header file with include guards.

Added guard lines
@codecov-io
Copy link

Current coverage is 31.03%

Merging #2008 into master will not change coverage

@@             master      #2008   diff @@
==========================================
  Files            19         19          
  Lines          3629       3629          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           1126       1126          
  Misses         2503       2503          
  Partials          0          0          

Powered by Codecov. Last updated by 61cc420...c52d226

@igrr igrr merged commit 974b9ae into esp8266:master Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants