-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Command SaveData breaks BME280 sensor #9300
Comments
On 8.5.0.1, I can confirm also getting weird BME280 readings after SaveData, before/after: |
I'm assuming that you mean that you can not use the |
I can't use any |
To be exact about a side detail, doing a But of course, the bug about doing a SaveData (not doing something else triggering save) corrupting BME280 readings is the real issue here. |
Ooops, my bad. I also tested your example. Yes, indeed - Some thoughts about the current issue:
|
A typical case of one programmer (me) defines a call back for a certain goal and another programmer thinks to use it for his goal without analysing the impact of it. In this case when command SaveData is executed it wants to save volatile data to flash for all BUT the BMP driver. The BMP driver will execute sleepmode without testing if sleep mode is enabled and puts the sensor in a reset state resulting in what you (and I) observe. I'll rewrite the BMP driver sleepmode trigger to test if this is a real sleep request. Expect fix in a few minutes. |
Fix reset BMP sensors when executing command ``SaveData`` and define USE_DEEPSLEEP enabled (#9300)
Confirmed working with http://ota.tasmota.com/tasmota/tasmota-sensors.bin.gz |
I can also confirm that the newest build now works as expected. 🎉 Thank you for your very fast response and fix! |
PROBLEM DESCRIPTION
When using the
SaveData
command with any parameter (or even none) the BME280 sensor only reports the following - regardless of the real values. On the current release 8.4.0 the "Dew point" isnull
instead of the value below.REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Steps to reproduce the behavior:
SaveData
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
Well, the sensor should not crash and lock to that values...
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
Chip was multiple times completely erased and flashed from scratch. Noticeably I can't reproduce the behavior on any of my other chips. Also I can not NOT use the
SaveData 0
command, due my own written lighting system often modifying the colors or other parameters, as it would damage the chip over time.(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: