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
578beecf3a
commit
af6a8d2a06
@ -139,10 +139,10 @@ namespace ratgdo {
|
|||||||
void IRAM_ATTR HOT RATGDOStore::isrObstruction(RATGDOStore *arg)
|
void IRAM_ATTR HOT RATGDOStore::isrObstruction(RATGDOStore *arg)
|
||||||
{
|
{
|
||||||
if (arg->input_obst.digital_read()) {
|
if (arg->input_obst.digital_read()) {
|
||||||
ESP_LOGD(TAG, "isrObstruction HIGH")
|
ESP_LOGD(TAG, "isrObstruction HIGH");
|
||||||
arg->lastObstructionHigh = millis();
|
arg->lastObstructionHigh = millis();
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGD(TAG, "isrObstruction LOW")
|
ESP_LOGD(TAG, "isrObstruction LOW");
|
||||||
arg->obstructionLowCount++;
|
arg->obstructionLowCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user