Skip to content

Commit ddf2791

Browse files
authored
Merge pull request #24 from tayden/patch-1
Fix filter_size setter bug
2 parents cad362d + 9211f42 commit ddf2791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_bme680.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def filter_size(self):
188188
@filter_size.setter
189189
def filter_size(self, size):
190190
if size in _BME680_FILTERSIZES:
191-
self._filter = _BME680_FILTERSIZES[size]
191+
self._filter = _BME680_FILTERSIZES.index(size)
192192
else:
193193
raise RuntimeError("Invalid size")
194194

0 commit comments

Comments
 (0)