Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion can/interfaces/pcan/pcan.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from can.bus import BusABC
from can.message import Message
from can import CanError
import can
import time

boottimeEpoch = 0
Expand Down Expand Up @@ -82,7 +83,7 @@ def __init__(self, channel, *args, **kwargs):
else:
self.channel_info = channel

bitrate = kwargs.get('bitrate', 500000)
bitrate = kwargs.get('bitrate', can.rc.get('bitrate', 500000))
pcan_bitrate = pcan_bitrate_objs.get(bitrate, PCAN_BAUD_500K)

hwtype = PCAN_TYPE_ISA
Expand Down