From af86bd977ab4d584d31fd20fe93d6938bd812887 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 14:39:37 -0500 Subject: [PATCH] fix --- components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp index 3f558c6..d08107f 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp @@ -14,13 +14,13 @@ namespace ratgdo { } void RATGDOBinarySensor::on_motion_state(MotionState state) { - ESP_LOGD(TAG, "this->type_:%s on_motion_state: %d", this->type_, state); + ESP_LOGD(TAG, "this->type_:%d on_motion_state: %d", this->type_, state); if (this->type_ == SensorType::RATGDO_SENSOR_MOTION) this->publish_state(state == MotionState::MOTION_STATE_DETECTED); } void RATGDOBinarySensor::on_obstruction_state(ObstructionState state) { - ESP_LOGD(TAG, "this->type_:%s on_obstruction_state: %d", this->type_, state); + ESP_LOGD(TAG, "this->type_:%d on_obstruction_state: %d", this->type_, state); if (this->type_ == SensorType::RATGDO_SENSOR_OBSTRUCTION) this->publish_state(state == ObstructionState::OBSTRUCTION_STATE_OBSTRUCTED); }