hardbyte / hardbyte/python-can

PCANBasic.TRACE_FILE_SEGMENTED error on macos (M1 architecture)

未关闭
#1,399 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
1.6k
派生
697
PR 合并指标
30 天内没有已合并 PR

描述

### Describe the bug
```
result = PCANBasic.PCANBasic().SetValue(
getattr(PCANBasic, 'PCAN_USBBUS1'),
PCANBasic.TRACE_FILE_SEGMENTED,
PCANBasic.PCAN_PARAMETER_ON,
)
```
return 65536 as error.
It does only impact the logging of the trace, not the other APIs

### To Reproduce
Maybe if you call https://github.com/eclipse/kiso-testing/blob/master/examples/uds.yaml

Error:
2022-09-22 12:05:23,938 [ERROR] cc_pcan_can:283: b'An unknown error has occurred'
2022-09-22 12:05:23,938 [ERROR] cc_pcan_can:254: Logging for PCAN_USBBUS1 not activated

### Expected behavior
No error

### Additional context

OS and version: macOS Monterey, 12.6
Python version: 3.10.6
python-can version: 4.0.0
python-can interface/s (if applicable): PCCANBASIC

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。