Skip to content

Commit ddbaf5d

Browse files
committed
refactor to original state
1 parent d31750a commit ddbaf5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_max31865.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
from micropython import const
5555

56-
import adafruit_bus_device.spi_device as spi_dev
56+
import adafruit_bus_device.spi_device as spi_device
5757

5858

5959
#pylint: disable=bad-whitespace
@@ -97,8 +97,8 @@ class MAX31865:
9797
def __init__(self, spi, cs, *, rtd_nominal=100, ref_resistor=430.0, wires=2):
9898
self.rtd_nominal = rtd_nominal
9999
self.ref_resistor = ref_resistor
100-
self._device = spi_dev.SPIDevice(spi, cs, baudrate=500000,
101-
polarity=0, phase=1)
100+
self._device = spi_device.SPIDevice(spi, cs, baudrate=500000,
101+
polarity=0, phase=1)
102102
# Set wire config register based on the number of wires specified.
103103
if wires not in (2, 3, 4):
104104
raise ValueError('Wires must be a value of 2, 3, or 4!')

0 commit comments

Comments
 (0)