diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 4b9b38c..a11632a 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -128,12 +128,12 @@ namespace ratgdo { } } - void IRAM_ATTR HOT RATGDOStore::isrObstruction() + void IRAM_ATTR HOT RATGDOStore::isrObstruction(RATGDOStore *arg) { if (this->input_obst.digital_read()) { arg->lastObstructionHigh = millis(); } else { - this->obstructionLowCount++; + arg->obstructionLowCount++; } }