Fix for noise in pulse_counter and duty_cycle components (#2646)

This commit is contained in:
Carlos Garcia Saura
2021-11-01 20:27:57 +01:00
committed by GitHub
parent d8b3af3815
commit d54b4e7c44
4 changed files with 22 additions and 17 deletions
@@ -30,7 +30,7 @@ class DutyCycleSensor : public sensor::Sensor, public PollingComponent {
InternalGPIOPin *pin_;
DutyCycleSensorStore store_{};
uint32_t last_update_;
uint32_t last_update_{0};
};
} // namespace duty_cycle