fix
This commit is contained in:
parent
c40dd728ab
commit
21bdf68cad
|
@ -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()) {
|
if (this->input_obst.digital_read()) {
|
||||||
arg->lastObstructionHigh = millis();
|
arg->lastObstructionHigh = millis();
|
||||||
} else {
|
} else {
|
||||||
this->obstructionLowCount++;
|
arg->obstructionLowCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue