Fixed leftover accel ref
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/91000d2d Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/91000d2d Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/91000d2d Branch: refs/heads/sensors_branch Commit: 91000d2d4e12b784f7b0f606b9ebd6e0f6ad587c Parents: 95a34bd Author: microbuilder <[email protected]> Authored: Thu Dec 29 15:06:46 2016 +0100 Committer: microbuilder <[email protected]> Committed: Thu Dec 29 15:06:46 2016 +0100 ---------------------------------------------------------------------- hw/drivers/sensors/sim/src/generic_mag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/91000d2d/hw/drivers/sensors/sim/src/generic_mag.c ---------------------------------------------------------------------- diff --git a/hw/drivers/sensors/sim/src/generic_mag.c b/hw/drivers/sensors/sim/src/generic_mag.c index e21f10e..f4eb385 100644 --- a/hw/drivers/sensors/sim/src/generic_mag.c +++ b/hw/drivers/sensors/sim/src/generic_mag.c @@ -112,7 +112,7 @@ sim_mag_sensor_read(struct sensor *sensor, sensor_type_t type, int i; int rc; - /* If the read isn't looking for accel data, then don't do anything. */ + /* If the read isn't looking for mag data, then don't do anything. */ if (!(type & SENSOR_TYPE_MAGNETIC_FIELD)) { rc = SYS_EINVAL; goto err; @@ -122,7 +122,7 @@ sim_mag_sensor_read(struct sensor *sensor, sensor_type_t type, /* When a sensor is "read", we get the last 'n' samples from the device * and pass them to the sensor data function. Based on the sample - * interval provided to sim_accel_config() and the last time this function + * interval provided to sim_mag_config() and the last time this function * was called, 'n' samples are generated. */ now = os_time_get();
