We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f14ef6 commit 58d9182Copy full SHA for 58d9182
adafruit_bmp3xx.py
@@ -78,7 +78,7 @@ class BMP3XX:
78
79
def __init__(self):
80
chip_id = self._read_byte(_REGISTER_CHIPID)
81
- if chip_id != _BMP388_CHIP_ID and chip_id != _BMP390_CHIP_ID:
+ if chip_id not in (_BMP388_CHIP_ID,_BMP390_CHIP_ID):
82
raise RuntimeError("Failed to find BMP3XX! Chip ID 0x%x" % chip_id)
83
self._read_coefficients()
84
self.reset()
0 commit comments