Skip to content

Commit 2380263

Browse files
authored
Fix isConnected to use provided I2C bus
Fixes #12
1 parent 46b98dc commit 2380263

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)