mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 08:21:36 +08:00
ms5525_airspeed: add -a flag to scan all i2c busses during start
This commit is contained in:
committed by
Beat Küng
parent
cf816fe556
commit
fd675084cc
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user