From 0cbb3722aead03ec9fae8165507314baf84b5b21 Mon Sep 17 00:00:00 2001 From: Paul Wieland Date: Wed, 17 Apr 2024 16:52:11 -0400 Subject: [PATCH] A dirty ifdef refactor of this needed --- components/ratgdo/ratgdo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 199a685..19a485b 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -422,9 +422,10 @@ namespace ratgdo { // dry contact protocol: // needed to trigger the intial state of the limit switch sensors // ideally this would be in drycontact::sync - // this->dry_contact_open_sensor_->state; +#ifdef PROTOCOL_DRYCONTACT this->protocol_->set_open_limit(this->dry_contact_open_sensor_->state); this->protocol_->set_close_limit(this->dry_contact_close_sensor_->state); +#endif } void RATGDOComponent::door_open()