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/03/06 21:16:04 UTC
incubator-mynewt-core git commit: SensorAPI list i2cscan cmdi in
sensor shell
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop c3b417456 -> 7d28f7b79
SensorAPI list i2cscan cmdi in sensor shell
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/7d28f7b7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/7d28f7b7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/7d28f7b7
Branch: refs/heads/develop
Commit: 7d28f7b7987781c54fa006de7f154a69ec93521a
Parents: c3b4174
Author: Vipul Rahane <vi...@apache.org>
Authored: Mon Mar 6 13:14:09 2017 -0800
Committer: Vipul Rahane <vi...@apache.org>
Committed: Mon Mar 6 13:14:09 2017 -0800
----------------------------------------------------------------------
hw/drivers/sensors/bno055/src/bno055.c | 3 ---
hw/sensor/src/sensor_shell.c | 1 +
2 files changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7d28f7b7/hw/drivers/sensors/bno055/src/bno055.c
----------------------------------------------------------------------
diff --git a/hw/drivers/sensors/bno055/src/bno055.c b/hw/drivers/sensors/bno055/src/bno055.c
index dbf0288..6f50563 100644
--- a/hw/drivers/sensors/bno055/src/bno055.c
+++ b/hw/drivers/sensors/bno055/src/bno055.c
@@ -811,9 +811,6 @@ bno055_config(struct bno055 *bno055, struct bno055_cfg *cfg)
goto err;
}
- bno055->cfg.bc_acc_range = cfg->bc_acc_range;
- bno055->cfg.bc_acc_bw = cfg->bc_acc_bw;
-
return 0;
err:
return rc;
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7d28f7b7/hw/sensor/src/sensor_shell.c
----------------------------------------------------------------------
diff --git a/hw/sensor/src/sensor_shell.c b/hw/sensor/src/sensor_shell.c
index 8a9b969..291ae04 100644
--- a/hw/sensor/src/sensor_shell.c
+++ b/hw/sensor/src/sensor_shell.c
@@ -52,6 +52,7 @@ sensor_display_help(void)
console_printf("Possible commands for sensor are:\n");
console_printf(" list\n");
console_printf(" read\n");
+ console_printf(" i2cscan\n");
}
static void