Skip to content

Commit 60aa4a0

Browse files
committed
refactor to original state
1 parent 3037bda commit 60aa4a0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

adafruit_lsm9ds1.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
except ImportError:
5656
import ustruct as struct
5757

58-
import adafruit_bus_device.i2c_device as i2c_dev
59-
import adafruit_bus_device.spi_device as spi_dev
58+
import adafruit_bus_device.i2c_device as i2c_device
59+
import adafruit_bus_device.spi_device as spi_device
6060
from micropython import const
6161

6262
# Internal constants and register values:
@@ -366,8 +366,8 @@ class LSM9DS1_I2C(LSM9DS1):
366366
"""Driver for the LSM9DS1 connect over I2C."""
367367

368368
def __init__(self, i2c):
369-
self._mag_device = i2c_dev.I2CDevice(i2c, _LSM9DS1_ADDRESS_MAG)
370-
self._xg_device = i2c_dev.I2CDevice(i2c, _LSM9DS1_ADDRESS_ACCELGYRO)
369+
self._mag_device = i2c_device.I2CDevice(i2c, _LSM9DS1_ADDRESS_MAG)
370+
self._xg_device = i2c_device.I2CDevice(i2c, _LSM9DS1_ADDRESS_ACCELGYRO)
371371
super().__init__()
372372

373373
def _read_u8(self, sensor_type, address):
@@ -406,8 +406,8 @@ class LSM9DS1_SPI(LSM9DS1):
406406
"""Driver for the LSM9DS1 connect over SPI."""
407407
# pylint: disable=no-member
408408
def __init__(self, spi, xgcs, mcs):
409-
self._mag_device = spi_dev.I2CDevice(spi, mcs)
410-
self._xg_device = spi_dev.I2CDevice(spi, xgcs)
409+
self._mag_device = spi_device.I2CDevice(spi, mcs)
410+
self._xg_device = spi_device.I2CDevice(spi, xgcs)
411411
super().__init__()
412412

413413
def _read_u8(self, sensor_type, address):

0 commit comments

Comments
 (0)