hardbyte / hardbyte/python-can

Standard frames are cut at 10th bit, instead of 11th

Open
#1,689 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1.6k
Forks
697
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug
If standard frames are tried to send, the can id is cut at the 10th bit instead of 11th bit

### To Reproduce
send a message with can id 0x7FF (any data), and set the property is_extended_id to False -> at the can output the id is set to 0x3FF instead of 0x7FF.

### Expected behavior
id must be 0x7FF

### Additional context

OS and version: Raspbian GNU/Linux 11 (bullseye)
Python version: 3.9.2
python-can version: 4.2.2
python-can interface/s (if applicable):

Traceback and logs

```python
def func():
return "hello, world!"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.