mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Update ds248x.cpp
using nullptr
This commit is contained in:
parent
2948591702
commit
49cfaab79a
@ -69,7 +69,7 @@ void DS248xComponent::setup() {
|
|||||||
|
|
||||||
ESP_LOGCONFIG(TAG, "Setting up DS248x...");
|
ESP_LOGCONFIG(TAG, "Setting up DS248x...");
|
||||||
|
|
||||||
if (this->sleep_pin_) {
|
if (this->sleep_pin_ != nullptr) {
|
||||||
this->sleep_pin_->setup();
|
this->sleep_pin_->setup();
|
||||||
this->sleep_pin_->pin_mode(esphome::gpio::FLAG_OUTPUT);
|
this->sleep_pin_->pin_mode(esphome::gpio::FLAG_OUTPUT);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user