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.
2 parents 970bfc7 + 3bec108 commit e87d999Copy full SHA for e87d999
adafruit_bme280.py
@@ -75,7 +75,7 @@ def __init__(self):
75
# Check device ID.
76
chip_id = self._read_byte(_BME280_REGISTER_CHIPID)
77
if _BME280_CHIPID != chip_id:
78
- raise RuntimeError('Failed to find BME280! Chip ID 0x%x' % id)
+ raise RuntimeError('Failed to find BME280! Chip ID 0x%x' % chip_id)
79
self._write_register_byte(_BME280_REGISTER_SOFTRESET, 0xB6)
80
time.sleep(0.5)
81
self._read_coefficients()
0 commit comments