Skip to content

Commit

Permalink
dealt with str format difference on bus.channel_info with mac/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Feb 24, 2024
1 parent 24d9bdd commit 681d606
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions olaf/_internals/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(

self._od = od
self._bus = bus
self._channel = self._bus.channel_info.split(" ")[-1]
self._channel = self._bus.channel_info.split(" ")[-1].replace("'", "")
self._bus_state = CanState.BUS_DOWN
self._node: canopen.LocalNode = None
self._network: canopen.Network = None
Expand Down Expand Up @@ -325,7 +325,6 @@ def _monitor_can(self):
self.first_bus_reset = True # flag to only log error message on first error
bus_type = self._bus.channel_info.split(" ")[0]
if bus_type == "socketcand":
print(self._bus)
self._restart_network()
self._bus_state = CanState.BUS_UP_NETWORK_UP
while not self._event.is_set():
Expand Down

0 comments on commit 681d606

Please sign in to comment.