Skip to content

Commit

Permalink
Refs #125: Roode component - use the make_call Number component's m…
Browse files Browse the repository at this point in the history
…ethod to update the value instead of the removed `set`
  • Loading branch information
gorbunovav committed May 27, 2022
1 parent c16734a commit 9224b13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/roode/roode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ void Roode::updateCounter(int delta) {
}
auto next = this->people_counter->state + (float) delta;
ESP_LOGI(TAG, "Updating people count: %d", (int) next);
this->people_counter->set(next);
auto call = this->people_counter->make_call();
call.set_value(next);
call.perform();
}
void Roode::recalibration() { calibrate_zones(); }

Expand Down

0 comments on commit 9224b13

Please sign in to comment.