Rest return fixes; Sensornode delay fix

This commit is contained in:
2017-08-31 19:22:57 +02:00
parent e6b7bdf721
commit c2b7c1eed7
3 changed files with 16 additions and 10 deletions

View File

@@ -107,8 +107,8 @@ void loop() {
//set new milli counter
//millis will overflow after approx. 52 days. To prevent errors we're checking the limits
if (millis() + MEASURESECONDS * 1000 <= ULONG_MAX) {
millitotal = millis() + 2000;
if (millis() + (MEASURESECONDS * 1000) <= ULONG_MAX) {
millitotal = millis() + (MEASURESECONDS * 1000);
} else {
millitotal = 0;
}