Skip to content

Commit 200122e

Browse files
authored
Merge pull request #12 from adafruit/patch-fix
Linted
2 parents cb0c105 + ae7fc1b commit 200122e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_mcp2515/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from struct import unpack_from, pack_into
2929
from time import sleep
3030
from micropython import const
31-
import adafruit_bus_device.spi_device as spi_device
31+
from adafruit_bus_device import spi_device
3232
from .canio import *
3333
from .timer import Timer
3434

@@ -370,7 +370,7 @@ def read_message(self):
370370
return self._unread_message_queue.pop(0)
371371

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

376376
# read from buffer

0 commit comments

Comments
 (0)