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

Update ds248x.cpp

using nullptr
This commit is contained in:
Iron Man 2024-04-24 21:21:12 +02:00 committed by GitHub
parent 2948591702
commit 49cfaab79a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ void DS248xComponent::setup() {
ESP_LOGCONFIG(TAG, "Setting up DS248x...");
if (this->sleep_pin_) {
if (this->sleep_pin_ != nullptr) {
this->sleep_pin_->setup();
this->sleep_pin_->pin_mode(esphome::gpio::FLAG_OUTPUT);
}