Skip to content

Commit 89f4c20

Browse files
authored
Adding option to override neovi library name
2 parents 8d24b3c + 39ec1b1 commit 89f4c20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

can/interfaces/ics_neovi/neovi_bus.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def __init__(self, channel, can_filters=None, **config):
9191
:param int data_bitrate:
9292
Which bitrate to use for data phase in CAN FD.
9393
Defaults to arbitration bitrate.
94+
:param override_library_name:
95+
Absolute path or relative path to the library including filename.
9496
"""
9597
if ics is None:
9698
raise ImportError('Please install python-ics')
@@ -101,6 +103,9 @@ def __init__(self, channel, can_filters=None, **config):
101103
logger.info("CAN Filters: {}".format(can_filters))
102104
logger.info("Got configuration of: {}".format(config))
103105

106+
if 'override_library_name' in config:
107+
ics.override_library_name(config.get('override_library_name'))
108+
104109
if isinstance(channel, (list, tuple)):
105110
self.channels = channel
106111
elif isinstance(channel, int):

0 commit comments

Comments
 (0)