From 08aa1ebf17c8d97b759e75f3f847cb7aa8ae2ba1 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 15 Feb 2015 16:18:21 +0100 Subject: [PATCH] LSM303D: Update comment why we report as internal always --- src/drivers/lsm303d/lsm303d.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/drivers/lsm303d/lsm303d.cpp b/src/drivers/lsm303d/lsm303d.cpp index 85ad74fdb9..b5f01b942f 100644 --- a/src/drivers/lsm303d/lsm303d.cpp +++ b/src/drivers/lsm303d/lsm303d.cpp @@ -1067,7 +1067,10 @@ LSM303D::mag_ioctl(struct file *filp, int cmd, unsigned long arg) return mag_self_test(); case MAGIOCGEXTERNAL: - /* no external mag board yet */ + /* Even if this sensor is on the "external" SPI bus + * it is still fixed to the autopilot assembly, + * so always return 0. + */ return 0; default: