A dirty ifdef

refactor of this needed
This commit is contained in:
Paul Wieland 2024-04-17 16:52:11 -04:00
parent f72cea2e8b
commit 0cbb3722ae
1 changed files with 2 additions and 1 deletions

View File

@ -422,9 +422,10 @@ namespace ratgdo {
// dry contact protocol: // dry contact protocol:
// needed to trigger the intial state of the limit switch sensors // needed to trigger the intial state of the limit switch sensors
// ideally this would be in drycontact::sync // 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_open_limit(this->dry_contact_open_sensor_->state);
this->protocol_->set_close_limit(this->dry_contact_close_sensor_->state); this->protocol_->set_close_limit(this->dry_contact_close_sensor_->state);
#endif
} }
void RATGDOComponent::door_open() void RATGDOComponent::door_open()