mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
minor fixes
This commit is contained in:
parent
537af5fa3b
commit
2fa3f97144
2 changed files with 2 additions and 1 deletions
|
@ -52,6 +52,7 @@ void PulseMeterSensor::loop() {
|
|||
} else if (this->filter_mode_ == FILTER_PULSE && current != this->last_pin_val_) {
|
||||
PulseMeterSensor::pulse_intr(this);
|
||||
}
|
||||
this->last_pin_val_ = current;
|
||||
|
||||
// Swap out set and get to get the latest state from the ISR
|
||||
std::swap(this->set_, this->get_);
|
||||
|
|
Loading…
Reference in a new issue