Skip to content

Commit

Permalink
Making ready for a new release
Browse files Browse the repository at this point in the history
  • Loading branch information
freol35241 committed Dec 16, 2021
1 parent 6f0cb08 commit 1dfd14c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CANBUS_CHANNEL=can0
CANBUS_TYPE=socketcan
4 changes: 1 addition & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ def cluon_send(message_requests):

# Open can bus. Make sure it is the right channel!
channel = int(CANBUS_CHANNEL) if CANBUS_TYPE in ("kvaser",) else CANBUS_CHANNEL
can_bus = can.interface.Bus(
bustype=CANBUS_TYPE, channel=channel, bitrate=500000
)
can_bus = can.interface.Bus(bustype=CANBUS_TYPE, channel=channel, bitrate=500000)

# Start processing messages
receive_from_canbus(can_bus, source.emit)
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
black
pylint
pytest
pytest
pytest-dotenv

0 comments on commit 1dfd14c

Please sign in to comment.