From 21bdf68cadde2f9aa64823026a210d3094f6e37a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 16:30:46 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 4b9b38c..a11632a 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -128,12 +128,12 @@ namespace ratgdo { } } - void IRAM_ATTR HOT RATGDOStore::isrObstruction() + void IRAM_ATTR HOT RATGDOStore::isrObstruction(RATGDOStore *arg) { if (this->input_obst.digital_read()) { arg->lastObstructionHigh = millis(); } else { - this->obstructionLowCount++; + arg->obstructionLowCount++; } }