You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/03/07 18:29:25 UTC

[1/3] incubator-mynewt-core git commit: SensorAPI list i2cscan cmdi in sensor shell

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 <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


[2/3] incubator-mynewt-core git commit: nimble/gap: Fix bad calculation on connection parameters validation

Posted by cc...@apache.org.
nimble/gap: Fix bad calculation on connection parameters validation


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/785d1e1d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/785d1e1d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/785d1e1d

Branch: refs/heads/master
Commit: 785d1e1d62566c21575ff24df62ab0eaf5b2c293
Parents: 7d28f7b
Author: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Authored: Tue Mar 7 11:08:38 2017 +0100
Committer: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Committed: Tue Mar 7 12:29:03 2017 +0100

----------------------------------------------------------------------
 net/nimble/host/src/ble_gap.c           | 7 ++++++-
 net/nimble/host/test/src/ble_gap_test.c | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/785d1e1d/net/nimble/host/src/ble_gap.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_gap.c b/net/nimble/host/src/ble_gap.c
index 0a09d4c..d14c55c 100644
--- a/net/nimble/host/src/ble_gap.c
+++ b/net/nimble/host/src/ble_gap.c
@@ -2828,8 +2828,13 @@ ble_gap_validate_conn_params(const struct ble_gap_upd_params *params)
         return false;
     }
 
+    /* According to specification mentioned above we should make sure that:
+     * supervision_timeout_ms > (1 + latency) * 2 * max_interval_ms
+     *    =>
+     * supervision_timeout * 10 ms > (1 + latency) * 2 * itvl_max * 1.25ms
+     */
     if (params->supervision_timeout <=
-                   (((1 + params->latency) * params->itvl_max) * 6 / 4)) {
+                   (((1 + params->latency) * params->itvl_max) / 4)) {
         return false;
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/785d1e1d/net/nimble/host/test/src/ble_gap_test.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/test/src/ble_gap_test.c b/net/nimble/host/test/src/ble_gap_test.c
index 9dd9dec..ac02343 100644
--- a/net/nimble/host/test/src/ble_gap_test.c
+++ b/net/nimble/host/test/src/ble_gap_test.c
@@ -2355,7 +2355,7 @@ TEST_CASE(ble_gap_test_case_update_conn_verify_params)
     ble_gap_test_util_update_verify_params(
         ((struct ble_gap_upd_params[]) { {
             .itvl_min = 100,
-            .itvl_max = 100,
+            .itvl_max = 600,
             .supervision_timeout = 300,
             .latency = 1,
             .min_ce_len = 554,


[3/3] incubator-mynewt-core git commit: This closes #196.

Posted by cc...@apache.org.
This closes #196.

Merge remote-tracking branch 'rymanluk/fix_calc_param'

* rymanluk/fix_calc_param:
  nimble/gap: Fix bad calculation on connection parameters validation
  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/69f8045b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/69f8045b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/69f8045b

Branch: refs/heads/master
Commit: 69f8045ba55b7d1e246a8780756c3d2480cc2334
Parents: cfe42df 785d1e1
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Mar 7 10:28:39 2017 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Mar 7 10:28:39 2017 -0800

----------------------------------------------------------------------
 hw/drivers/sensors/bno055/src/bno055.c  | 3 ---
 hw/sensor/src/sensor_shell.c            | 1 +
 net/nimble/host/src/ble_gap.c           | 7 ++++++-
 net/nimble/host/test/src/ble_gap_test.c | 2 +-
 4 files changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------