mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 13:43:54 +00:00
Initialize all child sensors to nullptr (#3808)
This commit is contained in:
@@ -54,10 +54,10 @@ class HMC5883LComponent : public PollingComponent, public i2c::I2CDevice {
|
||||
HMC5883LOversampling oversampling_{HMC5883L_OVERSAMPLING_1};
|
||||
HMC5883LDatarate datarate_{HMC5883L_DATARATE_15_0_HZ};
|
||||
HMC5883LRange range_{HMC5883L_RANGE_130_UT};
|
||||
sensor::Sensor *x_sensor_;
|
||||
sensor::Sensor *y_sensor_;
|
||||
sensor::Sensor *z_sensor_;
|
||||
sensor::Sensor *heading_sensor_;
|
||||
sensor::Sensor *x_sensor_{nullptr};
|
||||
sensor::Sensor *y_sensor_{nullptr};
|
||||
sensor::Sensor *z_sensor_{nullptr};
|
||||
sensor::Sensor *heading_sensor_{nullptr};
|
||||
enum ErrorCode {
|
||||
NONE = 0,
|
||||
COMMUNICATION_FAILED,
|
||||
|
||||
Reference in New Issue
Block a user