Skip to content

Commit 7335a0b

Browse files
committed
lint
1 parent 6b0ad22 commit 7335a0b

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ Usage Example
4545
print((mpr.pressure,))
4646
time.sleep(1)
4747
48-
.. todo:: Add a quick, simple example. It and other examples should live in the examples folder and be included in docs/examples.rst.
49-
5048
Contributing
5149
============
5250

adafruit_mprls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ class MPRLS:
6666
:param float psi_min: The minimum pressure in PSI, defaults to 0
6767
:param float psi_max: The maximum pressure in PSI, defaults to 25
6868
"""
69-
70-
def __init__(self, i2c_bus, *, addr = _MPRLS_DEFAULT_ADDR,
71-
reset_pin = None, eoc_pin = None, psi_min = 0, psi_max = 25):
69+
70+
def __init__(self, i2c_bus, *, addr=_MPRLS_DEFAULT_ADDR,
71+
reset_pin=None, eoc_pin=None, psi_min=0, psi_max=25):
7272
# Init I2C
7373
self._i2c = I2CDevice(i2c_bus, addr)
7474
self._buffer = bytearray(4)
@@ -123,7 +123,7 @@ def _read_data(self):
123123
raise RuntimeError("Internal math saturation")
124124
if self._buffer[0] & 0x04:
125125
raise RuntimeError("Integrity failure")
126-
126+
127127
# All is good, calculate the PSI and convert to hPA
128128
raw_psi = (self._buffer[1] << 16) | (self._buffer[2] << 8) | self._buffer[3]
129129
# use the 10-90 calibration curve

examples/mprls_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
reset = digitalio.DigitalInOut(board.D5)
1515
eoc = digitalio.DigitalInOut(board.D6)
1616
mpr = adafruit_mprls.MPRLS(i2c, eoc_pin=eoc, reset_pin=reset,
17-
psi_min=0, psi_max=25)
17+
psi_min=0, psi_max=25)
1818
"""
1919

2020
while True:

0 commit comments

Comments
 (0)