Skip to content

Commit 1bb9204

Browse files
committed
Pass debug parameter through to I2C object.
1 parent 9556f42 commit 1bb9204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_MPL115A2/Adafruit_MPL115A2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MPL115A2:
4949

5050

5151
def __init__(self, address=0x60, debug=False):
52-
self.i2c = Adafruit_I2C(address)
52+
self.i2c = Adafruit_I2C(address, debug=debug)
5353

5454
# Read coefficients
5555
self.a0 = self.__REGISTER_A0.read(self.i2c)

0 commit comments

Comments
 (0)