forked from Archive/PX4-Autopilot
HMC5883 post merge cleanup
This commit is contained in:
parent
2651327205
commit
a6b52f1c9f
|
@ -69,11 +69,11 @@ SPI::SPI(const char *name,
|
|||
// protected
|
||||
locking_mode(LOCK_PREEMPTION),
|
||||
// private
|
||||
_bus(bus),
|
||||
_device(device),
|
||||
_mode(mode),
|
||||
_frequency(frequency),
|
||||
_dev(nullptr)
|
||||
_dev(nullptr),
|
||||
_bus(bus)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -1266,7 +1266,7 @@ int calibrate(int bus);
|
|||
* Start the driver.
|
||||
*/
|
||||
void
|
||||
start(enum Rotation rotation)
|
||||
start(int bus, enum Rotation rotation)
|
||||
{
|
||||
int fd;
|
||||
|
||||
|
@ -1528,6 +1528,7 @@ int
|
|||
hmc5883_main(int argc, char *argv[])
|
||||
{
|
||||
int ch;
|
||||
int bus = -1;
|
||||
enum Rotation rotation = ROTATION_NONE;
|
||||
bool calibrate = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue