1
0
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:
Jesse Hills
2022-09-15 11:53:22 +12:00
committed by GitHub
parent 78b55d86e9
commit 0ac4c055de
27 changed files with 93 additions and 93 deletions

View File

@@ -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];
};