Skip to content

Commit 21e168f

Browse files
committed
Bugfix in support of (#275)
1 parent c4b733a commit 21e168f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ELMduino.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,7 @@ uint64_t ELM327::findResponse(const uint8_t& service,
24262426
numPayChars = secondHeadIndex - firstDatum;
24272427

24282428
// Look for the first colon after the last found header - this is the colon separating the data response from the logging response
2429-
logColonIndex = nextIndex(payload + secondHeadIndex, header, 1);
2429+
logColonIndex = nextIndex(payload + secondHeadIndex, ':', 1);
24302430
}
24312431
else
24322432
{
@@ -2436,7 +2436,7 @@ uint64_t ELM327::findResponse(const uint8_t& service,
24362436
numPayChars = recBytes - firstDatum;
24372437

24382438
// Look for the first colon after the last found header - this is the colon separating the data response from the logging response
2439-
logColonIndex = nextIndex(payload + firstHeadIndex, header, 1);
2439+
logColonIndex = nextIndex(payload + firstHeadIndex, ':', 1);
24402440
}
24412441

24422442
if (logColonIndex >= 0)

0 commit comments

Comments
 (0)