File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ void ObservableTimerMillis<T>::Suscribe(IObserver<T> &observer)
60
60
template <typename T>
61
61
void ObservableTimerMillis<T>::Update()
62
62
{
63
- if (_isActive == false ) return ;
64
-
65
- auto elapsed = static_cast <unsigned long >(millis () - _startTime);
63
+ if (_isActive == false ) return ;
64
+
65
+ auto elapsed = static_cast <unsigned long >(millis () - _startTime);
66
66
if (elapsed >= _interval + _offset)
67
67
{
68
68
if (_childObserver != nullptr ) _childObserver->OnNext (elapsed);
@@ -74,7 +74,7 @@ template <typename T>
74
74
void ObservableTimerMillis<T>::Reset()
75
75
{
76
76
this ->_isActive = true ;
77
- this ->_offset = delay ;
77
+ this ->_offset = this -> _delay ;
78
78
this ->_startTime = millis ();
79
79
}
80
80
@@ -122,4 +122,4 @@ bool ObservableTimerMillis<T>::IsActive() const
122
122
return _isActive;
123
123
}
124
124
125
- #endif
125
+ #endif
You can’t perform that action at this time.
0 commit comments