Vice presny periodicky rezim
This commit is contained in:
parent
1c870374cd
commit
a4b1c9b242
@ -28,7 +28,7 @@ bool Interval::expired()
|
|||||||
// periodic mode
|
// periodic mode
|
||||||
if ((millis() - _timefrom) >= _timeout) {
|
if ((millis() - _timefrom) >= _timeout) {
|
||||||
result = true;
|
result = true;
|
||||||
_timefrom = millis();
|
_timefrom += _timeout; // more precise periodic timing
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// compatibility mode
|
// compatibility mode
|
||||||
|
Loading…
Reference in New Issue
Block a user