You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@emArts-IoT , can you provide more details about the issue you are facing and the steps to reproduce it. In case the write functions are not working as expected, the code can get stuck in an endless loop.
I know this is an older issue, but I ran into the same issue, and wanted to explain how I fixed it.
In my case, the write function was not to blame. It seemed to be that the read function is trying to read from register 0xF4 instead of 0x74, which has one bit different. After digging through the library a bit, this seems to be related to the SPI bus paging, but I am using I2C. I realized that I forgot to set the data device data structure to use the I2C interface instead of the SPI one. @emArts-IoT You might want to double check that you did not make the same mistake that I did.
@kgoveas It might be useful for the library to have a limit for the number of retries, and once it reaches that it outputs an error, so that the system does not get stuck in an endless loop in the library, which can be a little bit harder to trace down.
When the device cannot be set to sleep mode (for whatever reason) the function never returns.
do
{
} while ((pow_mode != BME68X_SLEEP_MODE) && (rslt == BME68X_OK));
The text was updated successfully, but these errors were encountered: