Skip to content

Fix missing conversions of bme280 values#3965

Merged
blazoncek merged 1 commit intowled:0_15from
LordMike:bugfix/usermod_bme280
May 11, 2024
Merged

Fix missing conversions of bme280 values#3965
blazoncek merged 1 commit intowled:0_15from
LordMike:bugfix/usermod_bme280

Conversation

@LordMike
Copy link
Copy Markdown
Contributor

The BME280 usermod uses a multiply-round-divide approach to cap the temperature/humidity/pressure values to some number of decimals. But the divide-part was missing in a few instances.

This shows up as the temperature/pressure being a 10-factor too high, depending on the config chosen in my case (BMP280 I2C chip).

Turns out the divide-by-10 was just missing from a few statements.

@blazoncek
Copy link
Copy Markdown
Contributor

Please rebase this for 0_15 branch.

The BME280 usermod uses a multiply-round-divide approach to cap the temperature/humidity/pressure values to some number of decimals. But the divide-part was missing in a few instances.
@LordMike LordMike force-pushed the bugfix/usermod_bme280 branch from 5be6773 to b9ca2cf Compare May 10, 2024 20:45
@LordMike LordMike changed the base branch from main to 0_15 May 10, 2024 20:45
@LordMike
Copy link
Copy Markdown
Contributor Author

Rebased. I also changed the target to 0_15 as well.

@blazoncek blazoncek merged commit c016ded into wled:0_15 May 11, 2024
@LordMike LordMike deleted the bugfix/usermod_bme280 branch May 11, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants