Skip to content

Commit 7b09f7b

Browse files
committed
refactor to original state
1 parent e968762 commit 7b09f7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_l3gd20.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ class L3GD20_I2C(L3GD20):
210210
"""Gives the raw acceleration readings, in units of the scaled mdps."""
211211

212212
def __init__(self, i2c, rng=L3DS20_RANGE_250DPS, address=0x6B):
213-
import adafruit_bus_device.i2c_device as i2c_dev
214-
self.i2c_device = i2c_dev.I2CDevice(i2c, address)
213+
import adafruit_bus_device.i2c_device as i2c_device
214+
self.i2c_device = i2c_device.I2CDevice(i2c, address)
215215
self.buffer = bytearray(2)
216216
super().__init__(rng)
217217

@@ -250,8 +250,8 @@ class L3GD20_SPI(L3GD20):
250250
:param baudrate: spi baud rate default is 100000
251251
"""
252252
def __init__(self, spi_busio, cs, rng=L3DS20_RANGE_250DPS, baudrate=100000):
253-
import adafruit_bus_device.spi_device as spi_dev
254-
self._spi = spi_dev.SPIDevice(spi_busio, cs, baudrate=baudrate)
253+
import adafruit_bus_device.spi_device as spi_device
254+
self._spi = spi_device.SPIDevice(spi_busio, cs, baudrate=baudrate)
255255
self._spi_bytearray1 = bytearray(1)
256256
self._spi_bytearray6 = bytearray(6)
257257
super().__init__(rng)

0 commit comments

Comments
 (0)