Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corr branch #20

Merged
merged 6 commits into from
Feb 7, 2017
Merged

Corr branch #20

merged 6 commits into from
Feb 7, 2017

Conversation

klagr
Copy link
Contributor

@klagr klagr commented Feb 6, 2017

Made some small corrections.
Corrected a bug, where reading in forced mode would not perform a new measurement, but just read the old stored data in the registers.

Changed version number to avoid Arduino complaining about “Invalid
version found: 2.1.02”
Compiler warning: integer overflow in expression. Changed 100*1000 to
100000.0
Changed default mode value to 0x1 (forced mode), to be consistent with
the comments in Arduino source file examples.
The example BME280I2C constructor values were wrong, correct order is
tosr, hosr, posr and not posr, tosr, hosr. Also corrected the mode
value to 3 were normal mode should be selected (according to comments).
Modified code so that when in forced mode the BME280 goes from sleep to
forced mode just before reading the data. Original code had a bug,
where the sensor was left in sleep mode and it was just reading the old
stored measurements in the registers.
Changed the BME280::press method to BME280::pres to be consistent with
the README.md
@finitespace finitespace merged commit b6f7b30 into finitespace:master Feb 7, 2017
@finitespace
Copy link
Owner

Thanks!

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