Skip to content

Commit ddb17c6

Browse files
committed
Use unsigned long for millis
Fixes #133
1 parent b8acc44 commit ddb17c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/TimeClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TimeClient {
3333
private:
3434
float myUtcOffset = 0;
3535
long localEpoc = 0;
36-
long localMillisAtUpdate;
36+
unsigned long localMillisAtUpdate;
3737

3838
const char* ntpServerName = "time.nist.gov";
3939
unsigned int localPort = 2390;

src/WorldClockClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ See more at http://blog.squix.ch
3333

3434
class WorldClockClient: public JsonListener {
3535
private:
36-
long millisOfDayAtUpdate = 0;
37-
long localMillisAtUpdate;
36+
unsigned long millisOfDayAtUpdate = 0;
37+
unsigned long localMillisAtUpdate;
3838
boolean isHeader = true;
3939
String currentKey = "";
4040
String myLanguage;

0 commit comments

Comments
 (0)