Skip to content

Commit

Permalink
Implement CanProtocol for SeeedBus
Browse files Browse the repository at this point in the history
  • Loading branch information
lumagi committed Apr 4, 2023
1 parent 5ac9814 commit a290a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions can/interfaces/seeedstudio/seeedstudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from time import time

import can
from can import BusABC, Message
from can import BusABC, Message, CanProtocol

logger = logging.getLogger("seeedbus")

Expand Down Expand Up @@ -113,7 +113,7 @@ def __init__(
"could not create the serial device"
) from error

super().__init__(channel=channel, *args, **kwargs)
super().__init__(channel=channel, *args, protocol=CanProtocol.CAN_20, **kwargs)
self.init_frame()

def shutdown(self):
Expand Down

0 comments on commit a290a46

Please sign in to comment.