minor fixes

This commit is contained in:
Trent Houliston 2024-05-17 13:00:59 +10:00
parent 537af5fa3b
commit 2fa3f97144
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -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_);