mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-09 01:04:30 +00:00
fix
This commit is contained in:
parent
cfe78a5694
commit
c279826f98
@ -378,7 +378,7 @@ namespace ratgdo {
|
|||||||
} else if (this->obstructionLowCount == 0) {
|
} else if (this->obstructionLowCount == 0) {
|
||||||
// if the line is high and the last high pulse was more than 70ms ago,
|
// if the line is high and the last high pulse was more than 70ms ago,
|
||||||
// then there is an obstruction present
|
// 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();
|
obstructionDetected();
|
||||||
} else {
|
} else {
|
||||||
// asleep
|
// asleep
|
||||||
|
Loading…
x
Reference in New Issue
Block a user