fix crash

This commit is contained in:
J. Nick Koston 2023-06-07 08:42:02 -05:00
parent f086e18c41
commit f21324d708
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -82,10 +82,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++;
} }
} }