-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Humidity is disabled in the BME280 I2C driver because of a missing write operation #424
Comments
Hi @ssorc thanks for the report. I will setup to test this issue shortly and get back to you. |
Hi @ssorc yes, I can confirm that error is being returned. Interestingly, restarting the program causes the readings to come thru correctly on subsequent runs. In any case, your PR to address this would be appreciated. Thank you! |
The restart may work because the call to I will send through a PR: it's only a couple of lines. |
… by enforcing the write to the 'ctrl_meas' register, as per Section 5.4.3 of the BME280 data sheet Signed-off-by: Graeme Cross <graeme@ceriumdesigns.com>
I've submitted the PR. |
Issue #424: Enables humidity readings in the BME280 driver by enforci…
…ng the write to the 'ctrl_meas' register, as per Section 5.4.3 of the BME280 data sheet Signed-off-by: Graeme Cross <graeme@ceriumdesigns.com>
Version 1.6.0 is now out, and includes this fix. Now closing, thanks again @ssorc for this! |
Calling the
Humidity()
function on theBME280Driver
I2C driver results in the error: "Humidity disabled".This is because the
initHumidity()
function is incomplete; it writes out the humidity data acquisition options, but doesn't then write to the "ctrl_meas" register, as per Section 5.4.3 of the BME280 data sheet:I have a patch so can generate a pull request if someone else can confirm that this is the case! I have tested this on a Raspberry Pi Model B using the Sparkfun BME280 Atmospheric Sensor Breakout with gobot 1.5.0 and golang 1.7.5.
The text was updated successfully, but these errors were encountered: