Skip to content

Commit

Permalink
Merge pull request #67 from c0zm0z/patch-2
Browse files Browse the repository at this point in the history
Correct compilation warnings
  • Loading branch information
gmag11 committed Apr 26, 2018
2 parents 5d6cc53 + 4a00599 commit a10de81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NTPClientLib.cpp
Expand Up @@ -353,7 +353,7 @@ bool NTPClient::summertime (int year, byte month, byte day, byte hour, byte tzHo
{
if ((month < 3) || (month > 10)) return false; // keine Sommerzeit in Jan, Feb, Nov, Dez
if ((month > 3) && (month < 10)) return true; // Sommerzeit in Apr, Mai, Jun, Jul, Aug, Sep
if (month == 3 && (hour + 24 * day) >= (1 + tzHours + 24 * (31 - (5 * year / 4 + 4) % 7)) || month == 10 && (hour + 24 * day) < (1 + tzHours + 24 * (31 - (5 * year / 4 + 1) % 7)))
if ((month == 3 && (hour + 24 * day) >= (1 + tzHours + 24 * (31 - (5 * year / 4 + 4) % 7))) || (month == 10 && (hour + 24 * day) < (1 + tzHours + 24 * (31 - (5 * year / 4 + 1) % 7))))
return true;
else
return false;
Expand Down

0 comments on commit a10de81

Please sign in to comment.