From 2dac97fe68da0c70a3e22b43d1396ec310870097 Mon Sep 17 00:00:00 2001
From: Robert Dickenson <robert.dickenson@gmail.com>
Date: Sun, 3 Apr 2016 13:29:39 +1000
Subject: [PATCH] Add required rotation option to driver startup command and
 fix a couple of details in warnings/comments

---
 src/drivers/drv_input_capture.h | 2 +-
 src/drivers/hmc5883/hmc5883.cpp | 2 +-
 src/drivers/lis3mdl/lis3mdl.cpp | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/drivers/drv_input_capture.h b/src/drivers/drv_input_capture.h
index 4d6fef29bb..c5331ec98a 100644
--- a/src/drivers/drv_input_capture.h
+++ b/src/drivers/drv_input_capture.h
@@ -60,7 +60,7 @@ typedef void (*capture_callback_t)(void *context, uint32_t chan_index,
 				   hrt_abstime edge_time, uint32_t edge_state, uint32_t overflow);
 
 /**
- * Maximum number of PWM output channels supported by the device.
+ * Maximum number of PWM input channels supported by the device.
  */
 #ifndef INPUT_CAPTURE_MAX_CHANNELS
 #define INPUT_CAPTURE_MAX_CHANNELS 6
diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp
index 2a68eba6c1..d131f0dcc9 100644
--- a/src/drivers/hmc5883/hmc5883.cpp
+++ b/src/drivers/hmc5883/hmc5883.cpp
@@ -1102,7 +1102,7 @@ int HMC5883::calibrate(struct file *filp, unsigned enable)
 
 	/* start the sensor polling at 50 Hz */
 	if (OK != ioctl(filp, SENSORIOCSPOLLRATE, 50)) {
-		warn("FAILED: SENSORIOCSPOLLRATE 2Hz");
+		warn("FAILED: SENSORIOCSPOLLRATE 50Hz");
 		ret = 1;
 		goto out;
 	}
diff --git a/src/drivers/lis3mdl/lis3mdl.cpp b/src/drivers/lis3mdl/lis3mdl.cpp
index 205b0bb90d..5a994df648 100644
--- a/src/drivers/lis3mdl/lis3mdl.cpp
+++ b/src/drivers/lis3mdl/lis3mdl.cpp
@@ -35,6 +35,8 @@
  * @file lis3mdl.cpp
  *
  * Driver for the LIS3MDL magnetometer connected via I2C or SPI.
+ *
+ * Based on the hmc5883 driver.
  */
 
 #include <px4_config.h>
-- 
GitLab