Fixed various sketch-specific warnings

This commit is contained in:
Patrick Fallberg
2015-08-09 10:06:10 +02:00
parent af6e5d3019
commit 2b2a0ce294
11 changed files with 16 additions and 16 deletions
@@ -88,8 +88,8 @@ void loop()
// If no time has been received yet, request it every 10 second from controller
// When time has been received, request update every hour
if ((!timeReceived && now-lastRequest > (unsigned long)(10*1000))
|| (timeReceived && now-lastRequest > (unsigned long)(60*1000*60))) {
if ((!timeReceived && (now-lastRequest) > (10UL*1000UL))
|| (timeReceived && (now-lastRequest) > (60UL*1000UL*60UL))) {
// Request time from controller.
Serial.println("requesting time");
gw.requestTime(receiveTime);