diff --git a/can/interfaces/vector/canlib.py b/can/interfaces/vector/canlib.py index eb18d6e39..19e2c78da 100644 --- a/can/interfaces/vector/canlib.py +++ b/can/interfaces/vector/canlib.py @@ -174,3 +174,9 @@ def shutdown(self): vxlapi.xlDeactivateChannel(self.port_handle, self.mask) vxlapi.xlClosePort(self.port_handle) vxlapi.xlCloseDriver() + + def reset(self): + vxlapi.xlDeactivateChannel(self.port_handle, self.mask) + vxlapi.xlActivateChannel(self.port_handle, self.mask, + vxlapi.XL_BUS_TYPE_CAN, 0) +