Browse Source

HMC5883 post merge cleanup

sbg
Lorenz Meier 11 years ago
parent
commit
a6b52f1c9f
  1. 4
      src/drivers/device/spi.cpp
  2. 3
      src/drivers/hmc5883/hmc5883.cpp

4
src/drivers/device/spi.cpp

@ -69,11 +69,11 @@ SPI::SPI(const char *name,
// protected // protected
locking_mode(LOCK_PREEMPTION), locking_mode(LOCK_PREEMPTION),
// private // private
_bus(bus),
_device(device), _device(device),
_mode(mode), _mode(mode),
_frequency(frequency), _frequency(frequency),
_dev(nullptr) _dev(nullptr),
_bus(bus)
{ {
} }

3
src/drivers/hmc5883/hmc5883.cpp

@ -1266,7 +1266,7 @@ int calibrate(int bus);
* Start the driver. * Start the driver.
*/ */
void void
start(enum Rotation rotation) start(int bus, enum Rotation rotation)
{ {
int fd; int fd;
@ -1528,6 +1528,7 @@ int
hmc5883_main(int argc, char *argv[]) hmc5883_main(int argc, char *argv[])
{ {
int ch; int ch;
int bus = -1;
enum Rotation rotation = ROTATION_NONE; enum Rotation rotation = ROTATION_NONE;
bool calibrate = false; bool calibrate = false;

Loading…
Cancel
Save