Skip to content

Linted #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2021
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
4 changes: 2 additions & 2 deletions adafruit_mcp2515/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from struct import unpack_from, pack_into
from time import sleep
from micropython import const
import adafruit_bus_device.spi_device as spi_device
from adafruit_bus_device import spi_device
from .canio import *
from .timer import Timer

Expand Down Expand Up @@ -370,7 +370,7 @@ def read_message(self):
return self._unread_message_queue.pop(0)

def _read_rx_buffer(self, read_command):
for i in range(len(self._buffer)):
for i in range(len(self._buffer)): # pylint: disable=consider-using-enumerate
self._buffer[i] = 0

# read from buffer
Expand Down