0

bmp3xx_simpletest setting the power mode
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

bmp3xx_simpletest setting the power mode

by bryannorman on Thu Apr 29, 2021 2:39 pm

I want to change the bmp3xx power mode to NORMAL. Line 346 in Adafruit_BMP3XX.cpp is where I have set this as BMP3_MODE_NORMAL (it was FORCED). I have also hacked the bmp3xx_ simple_test program to delete the loop and just call bmp.performReading() once only. I have enabled DEBUG in Adafruit_BMP3XX.cpp and now bmp.performReading() fails. It works with FORCED.

I can't see what to do now!

Bryan

bryannorman
 
Posts: 10
Joined: Sun Feb 14, 2021 8:54 am

Re: bmp3xx_simpletest setting the power mode

by bryannorman on Mon May 03, 2021 8:02 am

I have found the problem: you must set the power mode before setting the other sensor settings. So I moved it to just after where the sensor settings are enabled, then BMP3_MODE_NORMAL will work satisfactorily, and the BMP390 will run continuously and you can set it up as per the data sheet.

I don't like hacking a library file as I have had to make a few other modifications, so I have attempted to create a new version with a new name. However this leads to a lot of renames in the code and I have not managed a successful compile.

Is there a simple way to create a modified library file without so much hacking?

(There is so much going on "under the hood" that it is very confusing!)

Bryan

bryannorman
 
Posts: 10
Joined: Sun Feb 14, 2021 8:54 am

Please be positive and constructive with your questions and comments.