File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,6 @@ void Child::sendValue(bool force) {
149
149
else {
150
150
// if the value does not differ enough from the previous one, do not send the value
151
151
if (_value > (_last_value - _value_delta) && _value < (_last_value + _value_delta)) {
152
- // keep track of the previous value
153
- _last_value = _value;
154
152
return ;
155
153
}
156
154
}
@@ -159,8 +157,6 @@ void Child::sendValue(bool force) {
159
157
else {
160
158
// if a delta is configured, do not report if the string is the same as the previous one
161
159
if (_value_delta > 0 && strcmp (_value_string, _last_value_string) == 0 ) {
162
- // keep track of the previous value
163
- _last_value_string = _value_string;
164
160
return ;
165
161
}
166
162
}
@@ -207,6 +203,7 @@ void Child::reset() {
207
203
void Child::setForceUpdateTimerValue (unsigned long value) {
208
204
_force_update_timer->setMode (TIME_INTERVAL);
209
205
_force_update_timer->setValue (value*60 );
206
+ _force_update_timer->start ();
210
207
}
211
208
void Child::setMinThreshold (float value) {
212
209
_min_threshold = value;
You can’t perform that action at this time.
0 commit comments