Skip to content

Commit 767e8e3

Browse files
committed
lint sprinkles
1 parent e8ad94e commit 767e8e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_mpl115a2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`Adafruit_MPL115A2`
23+
`adafruit_mpl115a2`
2424
====================================================
2525
2626
CircuitPython driver for MPL115A2 I2C Barometric Pressure/Temperature Sensor.
@@ -74,6 +74,7 @@ def temperature(self):
7474
return self._read()[1]
7575

7676
def _read_coefficients(self):
77+
# pylint: disable=invalid-name
7778
buf = bytearray(8)
7879
buf[0] = _MPL115A2_REGISTER_A0_COEFF_MSB
7980
with self._i2c as i2c:
@@ -82,14 +83,13 @@ def _read_coefficients(self):
8283
a0, b1, b2, c12 = struct.unpack(">hhhh", buf)
8384
c12 >>= 2
8485
# see datasheet pg. 9, do math
85-
# pylint: disable=invalid-name
8686
self._a0 = a0 / 8
8787
self._b1 = b1 / 8192
8888
self._b2 = b2 / 16384
8989
self._c12 = c12 / 4194304
90-
# pylint: enable=invalid-name
9190

9291
def _read(self):
92+
# pylint: disable=invalid-name
9393
self._buf[0] = _MPL115A2_REGISTER_STARTCONVERSION
9494
self._buf[1] = 0x00 # why? see datasheet, pg. 9, fig. 4
9595
with self._i2c as i2c:

0 commit comments

Comments
 (0)