Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Spot when pressure sensor has stalled and reset it. #95
What does this implement/fix? Explain your changes.
This fixes the problem with the MPL3115A2 on the pysense board occasionally hanging. The code gets into an infinite loop if the sensor fails to respond over I2C.
The code now spots if there hasn't been a response, and resets the MPL3115A2 sensor. The failure is communicated to the main code as an exception, and no result is returned, but the next time the call is made the sensor will be reset and will return values again.
Does this close any currently open issues?
This will close issue #46.
Where has this been tested?