Comments (6)
It looks like you did some patches. Why not forking the project and creating PR later on? Way easier than just suggesting someone else to program it for you ;)
from bme280.
The constructor does not call initialize, begin does. For now, you can call begin to re-initialize the sensor. I will think about if another function is required to provide different word choice when re-initializing.
Tyler
from bme280.
I am currently developing the fix for this as you requested.
I don't think it is a good idea to close the bug just like that. It is a real bug. The specification says that if selected "forced mode", the after the temperature reading the forced mode is unsetted and you need to set it again. In this implementation the forced mode is setted only the begin() so it cannot be setted again.
Worse case you should leave it open, as it is a real bug.
I'll tell you when I finish the fix.
Pablo
from bme280.
Pablo,
I don't believe this is an issue. First off, the config reg does not contain the mode settings. These are held in the measure ctrl reg which can be reset at anytime by calling setMode. Second, I believe if no mode is specified it defaults to forced. Third, looking at the diagrams it says it returns to sleep after executing a forced read, but as previously stated I believe it defaults to forced on the next read. Finally, I don't believe the registers are modified, so any config settings will be preserved. All this in mind, while the datasheet shows that it returns to sleep mode, and it might be interpreted that the config needs to be updated every read, I do no see any evidence that this is necessary in practice.
Tyler
from bme280.
Pablo,
I did a massive refactor of the code this weekend and I actually found that is not an issue because it is already being done. The config is pushed to the bme before every read if in forced mode.
Tyler
from bme280.
Thank you very much.
from bme280.
Related Issues (20)
- branch softwarewire - third instance problem HOT 1
- Station météo
- Station météo
- Filter is only applied to temperature and pressure HOT 3
- STM32F103C8 - bme.begin (); - program stops HOT 3
- BME280 v3.0 not work with u8g2 and display HX1230_SW_SPI HOT 3
- The question of the wind chill HOT 3
- non void function without return value HOT 1
- Propose License Change to LGPL/MIT HOT 28
- AbsoluteHumidity and HeatIndex environment calculations missing HOT 1
- Implement CI HOT 1
- Change Wire hard code over to passed in wire instance in I2C class
- BME280 no humidity :( HOT 1
- BME680 integration HOT 1
- SPI.h is inculed althought BME280Spi is not in use HOT 1
- non-void-return issue in 3.0.0 HOT 6
- ESP32 boot loop when calling bme.begin() HOT 3
- I2C to USB
- delete
- delete HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bme280.