Skip to content

Commit 82c7d8c

Browse files
committed
Fix #280
1 parent 6f5402d commit 82c7d8c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/ELMduino.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,8 +2450,11 @@ uint64_t ELM327::findResponse(const uint8_t& service,
24502450
uint8_t payloadIndex = firstDatum + i;
24512451
uint8_t bitsOffset = 4 * (numPayChars - i - 1);
24522452

2453-
Serial.print("\tProcessing hex nibble: ");
2454-
Serial.println(payload[payloadIndex]);
2453+
if (debugMode)
2454+
{
2455+
Serial.print("\tProcessing hex nibble: ");
2456+
Serial.println(payload[payloadIndex]);
2457+
}
24552458

24562459
response = response | ((uint64_t)ctoi(payload[payloadIndex]) << bitsOffset);
24572460
}

0 commit comments

Comments
 (0)