Skip to content

Commit e9b91b3

Browse files
committed
fix(cpp): use modern standards for init
1 parent 57a0a96 commit e9b91b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SPA06_003.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ class WipperSnapper_I2C_Driver_SPA06_003 : public WipperSnapper_I2C_Driver {
119119

120120
protected:
121121
Adafruit_SPA06_003 *_spa06_003 = nullptr; ///< SPA06-003 object
122-
Adafruit_Sensor *_spa06_003_temp = {
123-
0}; ///< Ptr to an adafruit_sensor representing the temperature
124-
Adafruit_Sensor *_spa06_003_pressure = {
125-
0}; ///< Ptr to an adafruit_sensor representing the pressure
122+
Adafruit_Sensor *_spa06_003_temp =
123+
nullptr; ///< Ptr to an adafruit_sensor representing the temperature
124+
Adafruit_Sensor *_spa06_003_pressure =
125+
nullptr; ///< Ptr to an adafruit_sensor representing the pressure
126126
};
127127

128128
#endif // WipperSnapper_I2C_Driver_SPA06_003_H

0 commit comments

Comments
 (0)