get rid of strings

This commit is contained in:
J. Nick Koston 2023-06-07 10:00:48 -05:00
parent 53e507bee6
commit d5cdc36615
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ namespace ratgdo {
{ {
DoorState val = static_cast<DoorState>(this->store_.doorState); DoorState val = static_cast<DoorState>(this->store_.doorState);
ESP_LOGD(TAG, "Door state: %s", door_state_to_string(val)); ESP_LOGD(TAG, "Door state: %s", door_state_to_string(val));
for (auto *child : this->children_) { for (auto* child : this->children_) {
child->on_door_state(val); child->on_door_state(val);
} }
this->status_door_pin_->digital_write(this->store_.doorState == 1); this->status_door_pin_->digital_write(this->store_.doorState == 1);