This commit is contained in:
J. Nick Koston 2023-06-05 13:46:15 -05:00
parent 1bf8fd7f9b
commit aa6fa43fc7
No known key found for this signature in database
1 changed files with 5 additions and 5 deletions

View File

@ -205,14 +205,14 @@ void IRAM_ATTR RATGDOComponent::isrDebounce(const char *type) {
}
}
void IRAM_ATTR isrDoorOpen() { isrDebounce("openDoor"); }
void IRAM_ATTR RATGDOComponent::isrDoorOpen() { isrDebounce("openDoor"); }
void IRAM_ATTR isrDoorClose() { isrDebounce("closeDoor"); }
void IRAM_ATTR RATGDOComponent::isrDoorClose() { isrDebounce("closeDoor"); }
void IRAM_ATTR isrLight() { isrDebounce("toggleLight"); }
void IRAM_ATTR RATGDOComponent::isrLight() { isrDebounce("toggleLight"); }
// Fire on RISING edge of RPM1
void IRAM_ATTR isrRPM1() { this->rpm1Pulsed = true; }
void IRAM_ATTR RATGDOComponent::isrRPM1() { this->rpm1Pulsed = true; }
// Fire on RISING edge of RPM2
// When RPM1 HIGH on RPM2 rising edge, door closing:
@ -277,7 +277,7 @@ void RATGDOComponent::dryContactLoop() {
}
/*************************** OBSTRUCTION DETECTION ***************************/
void IRAM_ATTR isrObstruction() {
void IRAM_ATTR RATGDOComponent::isrObstruction() {
if (digitalRead(INPUT_OBST)) {
this->lastObstructionHigh = millis();
} else {