SocketCAN low level fixes by felixdivo · Pull Request #296 · hardbyte/python-can · GitHub
Skip to content

SocketCAN low level fixes#296

Merged
hardbyte merged 4 commits into
developfrom
socketcan-low-level-fixes
Apr 26, 2018
Merged

SocketCAN low level fixes#296
hardbyte merged 4 commits into
developfrom
socketcan-low-level-fixes

Conversation

@felixdivo

@felixdivo felixdivo commented Apr 10, 2018

Copy link
Copy Markdown
Collaborator

Changes to SocketCAN CTypes:

  • libc.write(...) might write less bytes than requested, and is now called in a loop until all data has been transmitted
  • better error messages when sending: old can.socketcan.ctypes failed to transmit -> new can.socketcan_ctypes failed to transmit: ENETDOWN (errno 100): Network is down

Changes to SocketCAN Native:

Other:

  • removed the executable flag from test/listener_test.py
  • Added a IS_UNIX flag to test/config.py (it was required by a newly created unit test)

@felixdivo

Copy link
Copy Markdown
Collaborator Author

Comment thread test/config.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure some people would disagree with this definition of UNIX :-P

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sure. But it works here and I could not find anything better in the first Google attempt ;-)

@hardbyte hardbyte added this to the 2.2 Release milestone Apr 26, 2018
@hardbyte hardbyte merged commit 9c73316 into develop Apr 26, 2018
@hardbyte hardbyte deleted the socketcan-low-level-fixes branch April 26, 2018 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants