Align Android parser statistics with C core

This commit is contained in:
2026-09-04 21:10:02 +03:00
parent 6a82b309cc
commit 78d3f6690b
2 changed files with 7 additions and 2 deletions

View File

@@ -175,7 +175,9 @@ object CanBridgeProtocol {
stats = Stats(
frames = values[0],
crcErrors = values[1],
resyncBytes = values[2] + values[3],
// The former Kotlin parser counted one resync step
// for a rejected CRC frame in addition to stray bytes.
resyncBytes = values[1] + values[2] + values[3],
sequenceLost = values[4],
)
}