mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:03:33 +08:00
sf1xx driver: add -b and -a flags to choose i2c busses and remove nuttx stuff such as exit functions
This commit is contained in:
committed by
Beat Küng
parent
7d281b2619
commit
040662ff04
@@ -773,7 +773,7 @@ int reset();
|
||||
int info();
|
||||
|
||||
/**
|
||||
* Start the driver.
|
||||
*
|
||||
* Attempt to start driver on all available I2C busses.
|
||||
*
|
||||
* This function will return as soon as the first sensor
|
||||
@@ -841,7 +841,7 @@ fail:
|
||||
g_dev = nullptr;
|
||||
}
|
||||
|
||||
PX4_WARN("not started on bus %d", i2c_bus);
|
||||
PX4_ERR("not started on bus %d", i2c_bus);
|
||||
return PX4_ERROR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user