From d9676815fb478bb1c9dd0f8139c9685507eb16ec Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 09:25:00 -0500 Subject: [PATCH] get rid of strings --- components/ratgdo/ratgdo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index ff07125..33c3382 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -553,7 +553,7 @@ namespace ratgdo { void RATGDOComponent::openDoor() { if (this->store_.doorState == DoorState::DOOR_STATE_OPEN || this->store_.doorState == DoorState::DOOR_STATE_OPENING) { - ESP_LOGD(TAG, "The door is already %s", door_state_to_string(this->store_.doorState)); + ESP_LOGD(TAG, "The door is already %d", this->store_.doorState); return; } toggleDoor(); @@ -562,7 +562,7 @@ namespace ratgdo { void RATGDOComponent::closeDoor() { if (this->store_.doorState == DoorState::DOOR_STATE_CLOSED || this->store_.doorState == DoorState::DOOR_STATE_CLOSING) { - ESP_LOGD(TAG, "The door is already %s", door_state_to_string(this->store_.doorState)); + ESP_LOGD(TAG, "The door is already %d", this->store_.doorState); return; } toggleDoor();