01-20-2020 04:18 PM
Yesterday, I cloned the BME280_driver code from https://github.com/BoschSensortec/BME280_driver. It would not compile under MPLABX. It appears thet the 32-bit version of the function compensate_pressure() (in bme280.c at line 1261) references the trim variables as e.g. dig_P6, while the definition of the struct bme280_calib_data (in bme280_defs.h at line 262) declares then as e.g. dig_p6, using a lower case 'p'.
Substituting the lower case 'p' for the upper case 'P' in compensate_pressure() allows the code to compile. Call this a typo, not a bug.
Thanks!
01-20-2020 05:58 PM
Thanks for your report, it seems like this error has slipped during our latest update. Another user even already offered a pull request. We will review the Sensor API and update it as soon as possible.