mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
Unify 'nullptr' initalization of class members; (#3805)
This commit is contained in:
@@ -31,11 +31,11 @@ class PulseMeterSensor : public sensor::Sensor, public Component {
|
||||
protected:
|
||||
static void gpio_intr(PulseMeterSensor *sensor);
|
||||
|
||||
InternalGPIOPin *pin_ = nullptr;
|
||||
InternalGPIOPin *pin_{nullptr};
|
||||
ISRInternalGPIOPin isr_pin_;
|
||||
uint32_t filter_us_ = 0;
|
||||
uint32_t timeout_us_ = 1000000UL * 60UL * 5UL;
|
||||
sensor::Sensor *total_sensor_ = nullptr;
|
||||
sensor::Sensor *total_sensor_{nullptr};
|
||||
InternalFilterMode filter_mode_{FILTER_EDGE};
|
||||
|
||||
Deduplicator<uint32_t> pulse_width_dedupe_;
|
||||
|
||||
Reference in New Issue
Block a user