Skip to content

CarLife: log the head unit's version when it is rejected - #33

Merged
riko2chen merged 1 commit into
mainfrom
flog/carlife-version-diagnostics
Nov 6, 2026
Merged

riko2chen merged 1 commit into
mainfrom
flog/carlife-version-diagnostics

Conversation

@riko2chen

Copy link
Copy Markdown
Contributor

A CarLife head unit (Android relay 0.2.7-beta.2, USB) was rejected with version_mismatch, and the log could not say which version it sent. The rejection now logs version_rejected major=… minor=…, each limited to 0–999 (else out_of_range, or absent), so we can decide whether to accept it. Behaviour is unchanged: the session still closes with version_mismatch.

Test: ./gradlew :carlife:test (new rejectedVersionReportsOnlyBoundedProtocolFields).

@riko2chen
riko2chen enabled auto-merge November 6, 2026 10:36
@riko2chen
riko2chen merged commit 3f62872 into main Nov 6, 2026
6 checks passed
@riko2chen
riko2chen deleted the flog/carlife-version-diagnostics branch November 6, 2026 10:38
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant