This commit is contained in:
J. Nick Koston 2023-06-05 16:37:57 -05:00
parent 411e1a40d8
commit dd703a7cbb
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@ namespace ratgdo {
obstructionCleared();
// if there have been no pulses the line is steady high or low
} else if (this->obstructionLowCount == 0) {
} else if (this->store_.obstructionLowCount == 0) {
// if the line is high and the last high pulse was more than 70ms ago,
// then there is an obstruction present
if (this->input_obst_pin_->digital_read() && currentMillis - this->store_.lastObstructionHigh > 70) {
@ -393,7 +393,7 @@ namespace ratgdo {
}
lastMillis = currentMillis;
this->obstructionLowCount = 0;
this->store_.obstructionLowCount = 0;
}
}