python-can icon indicating copy to clipboard operation
python-can copied to clipboard

Fixed pcan Unpack error

Open FedericoSpada opened this issue 1 year ago • 0 comments

One of my colleagues encountered a "not enough values to unpack" error while scanning for connected dongles with PCAN drivers installed. I couldn't replicate the error on my computer after installing the latest PCAN drivers. Still, analysing the instruction that raised that error, it seems that PCANBasic.GetValue() returned a wrong Tuple for a specific error condition. That method must always return a Tuple with 2 elements, otherwise PcanBus._detect_available_configs() raises a "not enough values to unpack" error at line 718.

FedericoSpada avatar Apr 21 '24 13:04 FedericoSpada