Initialize all child sensors to nullptr (#3808)

This commit is contained in:
Jesse Hills
2022-09-15 11:53:22 +12:00
parent 6b23b7cad7
commit df4d0da221
27 changed files with 93 additions and 93 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ class SHTCXComponent : public PollingComponent, public sensirion_common::Sensiri
protected:
SHTCXType type_;
uint16_t sensor_id_;
sensor::Sensor *temperature_sensor_;
sensor::Sensor *humidity_sensor_;
sensor::Sensor *temperature_sensor_{nullptr};
sensor::Sensor *humidity_sensor_{nullptr};
};
} // namespace shtcx