Skip to content

Commit

Permalink
Apply configured IIR filter setting in generated BMP280 code (#4975)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Murray <murrayma@gmail.com>
  • Loading branch information
murrayma and Martin Murray committed Jun 20, 2023
1 parent 2406731 commit bfe85dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esphome/components/bmp280/sensor.py
Expand Up @@ -94,3 +94,5 @@ async def to_code(config):
sens = await sensor.new_sensor(conf)
cg.add(var.set_pressure_sensor(sens))
cg.add(var.set_pressure_oversampling(conf[CONF_OVERSAMPLING]))

cg.add(var.set_iir_filter(config[CONF_IIR_FILTER]))

0 comments on commit bfe85dd

Please sign in to comment.