You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2017/02/24 19:38:17 UTC

[22/50] incubator-mynewt-core git commit: Fixed leftover accel ref

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/develop
Commit: 91000d2d4e12b784f7b0f606b9ebd6e0f6ad587c
Parents: 95a34bd
Author: microbuilder <co...@microbuilder.eu>
Authored: Thu Dec 29 15:06:46 2016 +0100
Committer: microbuilder <co...@microbuilder.eu>
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();