mirror of
https://github.com/esphome/esphome.git
synced 2025-09-17 18:52:19 +01:00
Initialize all child sensors to nullptr (#3808)
This commit is contained in:
@@ -22,8 +22,8 @@ class MS5611Component : public PollingComponent, public i2c::I2CDevice {
|
||||
void read_pressure_(uint32_t raw_temperature);
|
||||
void calculate_values_(uint32_t raw_temperature, uint32_t raw_pressure);
|
||||
|
||||
sensor::Sensor *temperature_sensor_;
|
||||
sensor::Sensor *pressure_sensor_;
|
||||
sensor::Sensor *temperature_sensor_{nullptr};
|
||||
sensor::Sensor *pressure_sensor_{nullptr};
|
||||
uint16_t prom_[6];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user