This commit is contained in:
J. Nick Koston 2023-06-05 14:48:51 -05:00
parent cfe78a5694
commit c279826f98
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ namespace ratgdo {
} else if (this->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->lastObstructionHigh > 70) {
if (this->input_obst_pin_->digital_read() && currentMillis - this->lastObstructionHigh > 70) {
obstructionDetected();
} else {
// asleep