1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Update ds248x.h

init pointer to nullptr
This commit is contained in:
Iron Man 2024-04-24 21:23:14 +02:00 committed by GitHub
parent 49cfaab79a
commit b024c53a6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ class DS248xComponent : public PollingComponent, public i2c::I2CDevice {
uint8_t channel_ = 0;
bool last_device_found_;
InternalGPIOPin *sleep_pin_;
InternalGPIOPin *sleep_pin_ = nullptr;
DS248xType ds248x_type_ = DS248xType::DS2482_100;
bool enable_bus_sleep_ = false;