fix
This commit is contained in:
parent
21bdf68cad
commit
6468afe0ad
|
@ -130,7 +130,7 @@ namespace ratgdo {
|
||||||
|
|
||||||
void IRAM_ATTR HOT RATGDOStore::isrObstruction(RATGDOStore *arg)
|
void IRAM_ATTR HOT RATGDOStore::isrObstruction(RATGDOStore *arg)
|
||||||
{
|
{
|
||||||
if (this->input_obst.digital_read()) {
|
if (arg->input_obst.digital_read()) {
|
||||||
arg->lastObstructionHigh = millis();
|
arg->lastObstructionHigh = millis();
|
||||||
} else {
|
} else {
|
||||||
arg->obstructionLowCount++;
|
arg->obstructionLowCount++;
|
||||||
|
|
Loading…
Reference in New Issue