sf1xx driver: add -b and -a flags to choose i2c busses and remove nuttx stuff such as exit functions

This commit is contained in:
DanielePettenuzzo
2018-07-03 17:33:18 +02:00
committed by Beat Küng
parent 7d281b2619
commit 040662ff04
2 changed files with 131 additions and 43 deletions
@@ -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;
}