Skip to content

Commit 08ff33a

Browse files
authored
Merge pull request #13 from sparkfun/fix_isconnected
Fix isConnected to use provided I2C bus
2 parents 46b98dc + 2380263 commit 08ff33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qwiic_icm20948.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def isConnected(self):
337337
338338
@return **bool** True if the device is connected, otherwise False.
339339
"""
340-
return qwiic_i2c.isDeviceConnected(self.address)
340+
return self._i2c.isDeviceConnected(self.address)
341341

342342
connected = property(isConnected)
343343

0 commit comments

Comments
 (0)