Repository: incubator-mynewt-core Updated Branches: refs/heads/master cfe42df79 -> 69f8045ba
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/master Commit: 7d28f7b7987781c54fa006de7f154a69ec93521a Parents: c3b4174 Author: Vipul Rahane <[email protected]> Authored: Mon Mar 6 13:14:09 2017 -0800 Committer: Vipul Rahane <[email protected]> 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
