ms5525_airspeed: add -a flag to scan all i2c busses during start

This commit is contained in:
DanielePettenuzzo
2018-06-21 07:37:53 +02:00
committed by Beat Küng
parent cf816fe556
commit fd675084cc
2 changed files with 69 additions and 12 deletions
@@ -394,11 +394,13 @@ int stop();
int reset();
/**
* Start the driver.
*
* This function call only returns once the driver is up and running
* or failed to detect the sensor.
*/
* Attempt to start driver on all available I2C busses.
*
* This function will return as soon as the first sensor
* is detected on one of the available busses or if no
* sensors are detected.
*
*/
int
start()
{
@@ -412,6 +414,12 @@ start()
}
/**
* Start the driver on a specific bus.
*
* This function call only returns once the driver is up and running
* or failed to detect the sensor.
*/
int
start_bus(int i2c_bus)
{