From f11ec99ae380360d90bb028ec4f82b72980660e6 Mon Sep 17 00:00:00 2001 From: Paul Wieland
Date: Thu, 11 Jul 2024 16:39:17 -0400 Subject: [PATCH] Make door state less noisy in sec+1 mode --- 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 8b4f86e..47c13e9 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -85,14 +85,14 @@ namespace ratgdo { void RATGDOComponent::received(const DoorState door_state) { - ESP_LOGD(TAG, "Door state=%s", DoorState_to_string(door_state)); - auto prev_door_state = *this->door_state; if (prev_door_state == door_state) { return; } + ESP_LOGD(TAG, "Door state=%s", DoorState_to_string(door_state)); + // opening duration calibration if (*this->opening_duration == 0) { if (door_state == DoorState::OPENING && prev_door_state == DoorState::CLOSED) {