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
6 changes: 3 additions & 3 deletions doc/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ In Code
-------

The ``can`` object exposes an ``rc`` dictionary which can be used to set
the **interface** and **channel** before importing from ``can.interfaces``.
the **interface** and **channel**.

::

import can
can.rc['interface'] = 'socketcan'
can.rc['channel'] = 'vcan0'
can.rc['bitrate'] = 500000
from can.interfaces.interface import Bus
from can.interface import Bus

bus = Bus()

Expand Down Expand Up @@ -79,7 +79,7 @@ The configuration can also contain additional sections (or context):

::

from can.interfaces.interface import Bus
from can.interface import Bus

hs_bus = Bus(context='HS')
ms_bus = Bus(context='MS')
Expand Down