hardbyte / hardbyte/python-can

PCANBasic.TRACE_FILE_SEGMENTED error on macos (M1 architecture)

Abierto
#1,399 3 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Python
Estrellas
1.6k
Forks
697
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.