binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 12:33:29 -05:00
parent 7373fe052c
commit b747361d2d
No known key found for this signature in database
1 changed files with 0 additions and 4 deletions

View File

@ -85,10 +85,8 @@ namespace ratgdo {
void IRAM_ATTR HOT RATGDOStore::isrObstruction(RATGDOStore* arg)
{
if (arg->input_obst.digital_read()) {
// ESP_LOGD(TAG, "isrObstruction HIGH");
arg->lastObstructionHigh = millis();
} else {
// ESP_LOGD(TAG, "isrObstruction LOW");
arg->obstructionLowCount++;
}
}
@ -141,12 +139,10 @@ namespace ratgdo {
void RATGDOComponent::loop()
{
// ESP_LOGD(TAG, "loop rollingCodeCounter: %d", this->rollingCodeCounter);
obstructionLoop();
gdoStateLoop();
dryContactLoop();
statusUpdateLoop();
// ESP_LOGD(TAG, "Door State: %s", this->doorState.c_str());
}
void RATGDOComponent::dump_config()