Closed
Description
Describe the bug
Opening a Vector 1610A CAN FD interface fails with ValueError: 16 is not a valid XL_OutputMode
To Reproduce
Just creating the bus object with can.Bus(interface="vector", channel="0", fd=True)
is enough to trigger this on my test setup.
Not sure which settings cause that bit to be set in the outputMode field, unfortunately...
Expected behavior
Creating the bus succeeds.
Additional context
OS and version: Windows 10
Python version: 3.10
python-can version: 4.2.2
python-can interface/s: Vector VN1610A
Downgrading to 4.0.0 solves the problem (outputMode enum is not parsed there)
Traceback and logs
Traceback (most recent call last)
File "can\util.py", line 369, in wrapper
File "can\interface.py", line 138, in __new__
File "can\util.py", line 369, in wrapper
File "can\interfaces\vector\canlib.py", line 204, in __init__
File "can\interfaces\vector\canlib.py", line 1161, in get_channel_configs
File "can\interfaces\vector\canlib.py", line 1114, in _read_bus_params_from_c_struct
File "enum.py", line 711, in __call__
File "enum.py", line 1128, in __new__
ValueError: 16 is not a valid XL_OutputMode