mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
Apply configured IIR filter setting in generated BMP280 code (#4975)
Co-authored-by: Martin Murray <murrayma@gmail.com>
This commit is contained in:
parent
24067312f6
commit
bfe85dd710
1 changed files with 2 additions and 0 deletions
|
@ -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]))
|
||||
|
|
Loading…
Reference in a new issue