Skip to content

Commit e968762

Browse files
committed
linting
1 parent d1a4efe commit e968762

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

adafruit_l3gd20.py

-4
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ class L3GD20:
9393
"""
9494

9595
def __init__(self, rng=L3DS20_RANGE_250DPS):
96-
# pylint: disable=consider-using-in
97-
# This should be refactored to fix this pylint issue.
98-
# Pylint error: Consider merging these comparisons with "in" to
99-
# 'rng not in (L3DS20_RANGE_250DPS, L3DS20_RANGE_500DPS, L3DS20_RANGE_2000DPS)'
10096
chip_id = self.read_register(_ID_REGISTER)
10197
if chip_id != _L3GD20_CHIP_ID and chip_id != _L3GD20H_CHIP_ID:
10298
raise RuntimeError("bad chip id (%x != %x or %x)" %

examples/l3gd20_spi_simpletest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import time
22
from board import SCK, MISO, MOSI, D5
33
import busio
4-
import adafruit_l3gd20
54
import digitalio
5+
import adafruit_l3gd20
66

77
# define the spi conneciton
88
CS = digitalio.DigitalInOut(D5) # select pin is 5

0 commit comments

Comments
 (0)