Fix pro preklad

This commit is contained in:
Pavel Brychta 2018-11-16 19:21:12 +01:00
parent f8bc7a8360
commit 1356d845b3

View File

@ -24,7 +24,7 @@ bool Interval::expired(void)
bool result = false;
if (_done)
{
if (1 == mode)
if (1 == _mode)
{ // oneshot mode
if ((millis() - _timefrom) >= _timeout)
{
@ -32,7 +32,7 @@ bool Interval::expired(void)
result = true;
}
}
else if (2 == mode)
else if (2 == _mode)
{ // periodic mode
if ((millis() - _timefrom) >= _timeout)
{