Skip to content

pcan: keep a received frame read with a bus-load warning - #2130

Open
adambodurka-lime wants to merge 2 commits into
hardbyte:mainfrom
adambodurka-lime:pcan-keep-frames-under-bus-load
Open

adambodurka-lime wants to merge 2 commits into
hardbyte:mainfrom
adambodurka-lime:pcan-keep-frames-under-bus-load

Conversation

@adambodurka-lime

Copy link
Copy Markdown

Summary of Changes

  • PcanBus drops a received frame when Read() also reports PCAN_ERROR_BUSLIGHT or PCAN_ERROR_BUSHEAVY. This keeps the frame when those are the only flags and the message is a data frame. Status frames, error frames and other errors are handled as before.

Type of Change

  • Bug fix

Checklist

  • I have followed the contribution guide.
  • I have added or updated tests as appropriate.
  • I have added a news fragment for towncrier.
  • All checks and tests pass (tox). Ran test/test_pcan.py and black --check only.

🤖 Generated with Claude Code

adambodurka-lime and others added 2 commits November 13, 2026 14:40
PCAN-Basic can report BUSLIGHT or BUSHEAVY together with a frame it
received. PcanBus dropped the frame in that case. Keep it when those
are the only flags and the message is not a status or error frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant