Latest Adafruit_MPL3115A2 library v 2.0.0 issue

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
thorathome
 
Posts: 32
Joined: Wed Nov 25, 2015 11:39 am

Latest Adafruit_MPL3115A2 library v 2.0.0 issue

Post by thorathome »

Hi Adafruit.

I'm an active ESP32/8266 developer and use your Adafruit_MPL3115A2 library.

This library's recent update to v2.0.0 caused my existing sketches to return very low, incorrect barometer readings. Temperature readings were unaffected.
Backing up to the earlier library version 1.2.4 fixed the error. The impacted MPL3115A2 code is stable, has been running on an ESP8266 for months/years.

I can supply sketch code if that will help. Thanks for your stunning library support all this time. Much appreciated.

Running
Win 10
Arduino IDE 1.8.15
ESP8266
MPL3115A2 purchased from Adafruit in 2016 (I just ordered an additional unit.)
Also running Blynk.io

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Latest Adafruit_MPL3115A2 library v 2.0.0 issue

Post by adafruit_support_carter »

The 2.0.0 update included some breaking changes. I think you are running into that.
https://github.com/adafruit/Adafruit_MP ... ry/pull/21

The pressure output was changed from Pa to hPa, so will have changed by a factor of 100. 1 Pa = 0.01 hPa. Sorry for the sudden change. The change was done as an attempt to be more consistent with engineering units used for sensors.

User avatar
thorathome
 
Posts: 32
Joined: Wed Nov 25, 2015 11:39 am

Re: Latest Adafruit_MPL3115A2 library v 2.0.0 issue

Post by thorathome »

Thanks for the info. Perfectly helpful. Easy recovery.

Thanks again for keeping these libraries updated.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”