aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/hmc5883/hmc5883.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/hmc5883/hmc5883.cpp')
-rw-r--r--src/drivers/hmc5883/hmc5883.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp
index 72d6bdd95..c2e4700d8 100644
--- a/src/drivers/hmc5883/hmc5883.cpp
+++ b/src/drivers/hmc5883/hmc5883.cpp
@@ -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;