[GitHub] ccollins476ad opened a new pull request #633: BLE Host - Fix typo in flag check

2017-10-18 Thread GitBox
ccollins476ad opened a new pull request #633: BLE Host - Fix typo in flag check
URL: https://github.com/apache/mynewt-core/pull/633
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] ccollins476ad opened a new pull request #632: BLE Host - Remove BLE_GAP_EVENT_CONN_CANCEL

2017-10-18 Thread GitBox
ccollins476ad opened a new pull request #632: BLE Host - Remove 
BLE_GAP_EVENT_CONN_CANCEL
URL: https://github.com/apache/mynewt-core/pull/632
 
 
   Cancelled connect procedures are reported as:
   event.type: BLE_GAP_EVENT_CONNECT
   event.connect.status: BLE_HS_EAPP
   
   Discussion regarding this change can be found here:
   
https://lists.apache.org/thread.html/6575cbf8faef793381845aaa99bea7c4c053926af43928c82f62e236@%3Cdev.mynewt.apache.org%3E


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-core] branch master updated (8a4447a -> b19dd67)

2017-10-18 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

mlaz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from 8a4447a  Check the int2 pin num before init
 add 68b5b2d  removing illegal dependency on external repository
 new b19dd67  Merge pull request #631 from mlaz/fix_bsp

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 hw/bsp/nrf52dk/pkg.yml | 3 ---
 1 file changed, 3 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[GitHub] mlaz closed pull request #631: removing illegal dependency on external repository

2017-10-18 Thread GitBox
mlaz closed pull request #631: removing illegal dependency on external 
repository
URL: https://github.com/apache/mynewt-core/pull/631
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/hw/bsp/nrf52dk/pkg.yml b/hw/bsp/nrf52dk/pkg.yml
index e00450ac5..585e55aaf 100644
--- a/hw/bsp/nrf52dk/pkg.yml
+++ b/hw/bsp/nrf52dk/pkg.yml
@@ -94,8 +94,5 @@ pkg.deps.UART_0:
 pkg.deps.UART_1:
 - hw/drivers/uart/uart_bitbang
 
-pkg.deps.PWM:
-- "@mynewt_nordic/hw/drivers/pwm/pwm_nrf52"
-
 pkg.deps.SOFT_PWM:
 - hw/drivers/pwm/soft_pwm


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-core] 01/01: Merge pull request #631 from mlaz/fix_bsp

2017-10-18 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

mlaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit b19dd67d54db3400889e6894af4e5f0cbb3f20ec
Merge: 8a4447a 68b5b2d
Author: Miguel Azevedo 
AuthorDate: Thu Oct 19 01:39:37 2017 +0200

Merge pull request #631 from mlaz/fix_bsp

removing illegal dependency on external repository

 hw/bsp/nrf52dk/pkg.yml | 3 ---
 1 file changed, 3 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[mynewt-core] branch master updated: Check the int2 pin num before init

2017-10-18 Thread vipulrahane
This is an automated email from the ASF dual-hosted git repository.

vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
 new 8a4447a  Check the int2 pin num before init
8a4447a is described below

commit 8a4447abd9279b92e61a155dfa09eddbbff803e8
Author: Vipul Rahane 
AuthorDate: Wed Oct 18 15:36:23 2017 -0700

Check the int2 pin num before init
---
 hw/drivers/sensors/bma253/src/bma253.c | 19 +++
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/hw/drivers/sensors/bma253/src/bma253.c 
b/hw/drivers/sensors/bma253/src/bma253.c
index cd8761c..729d7e5 100644
--- a/hw/drivers/sensors/bma253/src/bma253.c
+++ b/hw/drivers/sensors/bma253/src/bma253.c
@@ -3492,16 +3492,19 @@ int bma253_config(struct bma253 * bma253, struct 
bma253_cfg * cfg)
   HAL_GPIO_PULL_NONE);
if (rc != 0)
return rc;
-   rc = hal_gpio_irq_init(cfg->int_pin2_num,
-  interrupt_handler,
-  bma253->ints + BMA253_INT_PIN_2,
-  gpio_trig,
-  HAL_GPIO_PULL_NONE);
-   if (rc != 0)
-   return rc;
+
+  if (cfg->int_pin2_num) {
+   rc = hal_gpio_irq_init(cfg->int_pin2_num,
+  interrupt_handler,
+  bma253->ints + BMA253_INT_PIN_2,
+  gpio_trig,
+  HAL_GPIO_PULL_NONE);
+   if (rc != 0)
+   return rc;
+   hal_gpio_irq_enable(cfg->int_pin2_num);
+  }
 
hal_gpio_irq_enable(cfg->int_pin1_num);
-   hal_gpio_irq_enable(cfg->int_pin2_num);
 
rc = sensor_set_type_mask(sensor, cfg->sensor_mask);
if (rc != 0)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[GitHub] vsyn opened a new pull request #630: LP5523: LED Driver

2017-10-18 Thread GitBox
vsyn opened a new pull request #630: LP5523: LED Driver
URL: https://github.com/apache/mynewt-core/pull/630
 
 
   I tried to stick to the data sheet nomenclature, looking back, I'm not sure 
that was the best way to go as it isn't very consistent.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-core] 01/01: Merge pull request #628 from wes3/accel

2017-10-18 Thread wes3
This is an automated email from the ASF dual-hosted git repository.

wes3 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit d77a75396fbf1b46a2e2d12d242d60402ebfbb57
Merge: af48785 ecf3319
Author: wes3 
AuthorDate: Wed Oct 18 12:57:34 2017 -0700

Merge pull request #628 from wes3/accel

Commit of initial BMA253 driver.

 hw/drivers/sensors/bma253/include/bma253/bma253.h  |  253 ++
 .../syscfg.yml => drivers/sensors/bma253/pkg.yml}  |   39 +-
 hw/drivers/sensors/bma253/src/bma253.c | 3557 
 .../creator => drivers/sensors/bma253}/syscfg.yml  |   30 +-
 hw/sensor/creator/pkg.yml  |2 +
 hw/sensor/creator/src/sensor_creator.c |   71 +
 hw/sensor/creator/syscfg.yml   |3 +
 7 files changed, 3903 insertions(+), 52 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[mynewt-core] branch master updated (af48785 -> d77a753)

2017-10-18 Thread wes3
This is an automated email from the ASF dual-hosted git repository.

wes3 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from af48785  Merge pull request #624 from wes3/gw_conf_tx
 add ecf3319  Commit of initial BMA253 driver.
 new d77a753  Merge pull request #628 from wes3/accel

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 hw/drivers/sensors/bma253/include/bma253/bma253.h  |  253 ++
 hw/drivers/sensors/{lis2dh12 => bma253}/pkg.yml|   12 +-
 hw/drivers/sensors/bma253/src/bma253.c | 3557 
 .../drivers/sensors/bma253}/syscfg.yml |4 +-
 hw/sensor/creator/pkg.yml  |2 +
 hw/sensor/creator/src/sensor_creator.c |   71 +
 hw/sensor/creator/syscfg.yml   |3 +
 7 files changed, 3893 insertions(+), 9 deletions(-)
 create mode 100644 hw/drivers/sensors/bma253/include/bma253/bma253.h
 copy hw/drivers/sensors/{lis2dh12 => bma253}/pkg.yml (83%)
 create mode 100644 hw/drivers/sensors/bma253/src/bma253.c
 copy {mgmt/newtmgr/nmgr_os => hw/drivers/sensors/bma253}/syscfg.yml (93%)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[GitHub] ccollins476ad opened a new pull request #629: BLE Host - Delay sync callback after IRK restore

2017-10-18 Thread GitBox
ccollins476ad opened a new pull request #629: BLE Host - Delay sync callback 
after IRK restore
URL: https://github.com/apache/mynewt-core/pull/629
 
 
    Prior to commit
   
   On startup, the host executes the following steps:
   
   1. HCI startup sequence
   2. Call sync callback
   3. Restore IRKs from flash
   
   The problem is that step 3 (IRK restoration) causes a GAP preemption if
   there are any persisted IRKs.  If the application initiates a GAP
   procedure during the sync callback, it will be immediately preempted.
   This happens in the bleprph app, for example.
   
    After commit
   
   Don't call the sync callback until after IRK restoration is complete.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] wes3 opened a new pull request #628: Commit of initial BMA253 driver.

2017-10-18 Thread GitBox
wes3 opened a new pull request #628: Commit of initial BMA253 driver.
URL: https://github.com/apache/mynewt-core/pull/628
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-core] branch master updated (9ee8295 -> af48785)

2017-10-18 Thread wes3
This is an automated email from the ASF dual-hosted git repository.

wes3 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from 9ee8295  Merge pull request #625 from granaghan/patch-1
 add 60951cb  net/lora: End-device ACK fixes and mac command handling mods
 add 2f01405  os_mbuf.h; remove whitespace for end of lines.
 add 78847bb  lora; add lora_app_mtu() which tells maximum payload which 
will be accepted by lora_app_port_send().
 add fd4976c  Coap over Lora; first rough cut.
 add 6bc0bd9  lora_app_shell; enable coap over lora for this app.
 add 271c2da  lora; add counter for plain mac flush frames. When reporting 
size to use for TX, take into accoutn queued mac commands.
 add 1219318  Merge branch 'coap_lora' of 
github.com:mkiiskila/incubator-mynewt-core into gw_conf_tx
 add 8d7f41b  net/lora: oc send buffer modification
 new af48785  Merge pull request #624 from wes3/gw_conf_tx

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 apps/lora_app_shell/pkg.yml|   2 +
 apps/lora_app_shell/src/las_cmd.c  |   5 +
 apps/lora_app_shell/src/main.c |  16 ++
 apps/lora_app_shell/syscfg.yml |   3 +
 kernel/os/include/os/os_mbuf.h |  66 ++---
 net/lora/node/include/node/lora.h  |  10 +-
 net/lora/node/include/node/lora_priv.h |  10 +-
 net/lora/node/src/lora_app.c   |  12 +
 net/lora/node/src/lora_node.c  |  87 +--
 net/lora/node/src/mac/LoRaMac.c|  98 +---
 net/oic/include/oic/port/oc_connectivity.h |  12 +
 net/oic/pkg.yml|  19 +-
 net/oic/src/port/mynewt/adaptor.c  |  21 ++
 net/oic/src/port/mynewt/adaptor.h  |   6 +
 net/oic/src/port/mynewt/lora_adaptor.c | 376 +
 net/oic/syscfg.yml |   6 +
 16 files changed, 653 insertions(+), 96 deletions(-)
 create mode 100644 net/oic/src/port/mynewt/lora_adaptor.c

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[GitHub] wes3 closed pull request #624: Gw conf tx

2017-10-18 Thread GitBox
wes3 closed pull request #624: Gw conf tx
URL: https://github.com/apache/mynewt-core/pull/624
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/apps/lora_app_shell/pkg.yml b/apps/lora_app_shell/pkg.yml
index 4af8d67bb..749e706d1 100644
--- a/apps/lora_app_shell/pkg.yml
+++ b/apps/lora_app_shell/pkg.yml
@@ -32,3 +32,5 @@ pkg.deps:
 - "@apache-mynewt-core/sys/shell"
 - "@apache-mynewt-core/sys/stats/full"
 - "@apache-mynewt-core/util/parse"
+- "mgmt/oicmgr"
+- "mgmt/newtmgr/nmgr_os"
diff --git a/apps/lora_app_shell/src/las_cmd.c 
b/apps/lora_app_shell/src/las_cmd.c
index b689f5013..ac0a5f51f 100644
--- a/apps/lora_app_shell/src/las_cmd.c
+++ b/apps/lora_app_shell/src/las_cmd.c
@@ -823,6 +823,11 @@ las_cmd_app_tx(int argc, char **argv)
 return 0;
 }
 
+if (lora_app_mtu() < len) {
+console_printf("Can send at max %d bytes\n", lora_app_mtu());
+return 0;
+}
+
 /* Attempt to allocate a mbuf */
 om = lora_pkt_alloc();
 if (!om) {
diff --git a/apps/lora_app_shell/src/main.c b/apps/lora_app_shell/src/main.c
index b33faf2f9..a37e4b511 100644
--- a/apps/lora_app_shell/src/main.c
+++ b/apps/lora_app_shell/src/main.c
@@ -31,6 +31,7 @@
 #include "parse/parse.h"
 #include "node/lora_priv.h"
 #include "node/lora.h"
+#include "oic/oc_api.h"
 
 extern void las_cmd_init(void);
 extern void las_cmd_disp_byte_str(uint8_t *bytes, int len);
@@ -123,6 +124,18 @@ lora_app_shell_link_chk_cb(LoRaMacEventInfoStatus_t 
status, uint8_t num_gw,
status, num_gw, demod_margin);
 }
 
+static void
+oic_app_init(void)
+{
+oc_init_platform("MyNewt", NULL, NULL);
+oc_add_device("/oic/d", "oic.d.light", "MynewtLed", "1.0", "1.0", NULL,
+  NULL);
+}
+
+static const oc_handler_t omgr_oc_handler = {
+.init = oic_app_init,
+};
+
 int
 main(void)
 {
@@ -132,9 +145,12 @@ main(void)
 
 sysinit();
 
+console_printf("\n");
 console_printf("lora_app_shell\n");
 las_cmd_init();
 
+oc_main_init((oc_handler_t *)_oc_handler);
+
 /*
  * As the last thing, process events from default event queue.
  */
diff --git a/apps/lora_app_shell/syscfg.yml b/apps/lora_app_shell/syscfg.yml
index 4390c1873..70db38e9b 100644
--- a/apps/lora_app_shell/syscfg.yml
+++ b/apps/lora_app_shell/syscfg.yml
@@ -23,3 +23,6 @@ syscfg.vals:
 SHELL_TASK: 1
 LORA_NODE_CLI: 0
 SHELL_MAX_COMPAT_COMMANDS: 32
+OC_SERVER: 1
+OC_TRANSPORT_LORA: 1
+LOG_SOFT_RESET: 0
diff --git a/kernel/os/include/os/os_mbuf.h b/kernel/os/include/os/os_mbuf.h
index 10b1fbad4..314a2ebe7 100644
--- a/kernel/os/include/os/os_mbuf.h
+++ b/kernel/os/include/os/os_mbuf.h
@@ -6,7 +6,7 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *  http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing,
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#ifndef _OS_MBUF_H 
-#define _OS_MBUF_H 
+#ifndef _OS_MBUF_H
+#define _OS_MBUF_H
 
 #include "os/queue.h"
 #include "os/os_eventq.h"
@@ -28,15 +28,15 @@ extern "C" {
 #endif
 
 /**
- * A mbuf pool from which to allocate mbufs. This contains a pointer to the os 
- * mempool to allocate mbufs out of, the total number of elements in the pool, 
- * and the amount of "user" data in a non-packet header mbuf. The total pool 
- * size, in bytes, should be: 
+ * A mbuf pool from which to allocate mbufs. This contains a pointer to the os
+ * mempool to allocate mbufs out of, the total number of elements in the pool,
+ * and the amount of "user" data in a non-packet header mbuf. The total pool
+ * size, in bytes, should be:
  *  os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))
  */
 struct os_mbuf_pool {
-/** 
- * Total length of the databuf in each mbuf.  This is the size of the 
+/**
+ * Total length of the databuf in each mbuf.  This is the size of the
  * mempool block, minus the mbuf header
  */
 uint16_t omp_databuf_len;
@@ -45,7 +45,7 @@ struct os_mbuf_pool {
  */
 uint16_t omp_mbuf_count;
 /**
- * The memory pool which to allocate mbufs out of 
+ * The memory pool which to allocate mbufs out of
  */
 struct os_mempool *omp_pool;
 
@@ -91,12 +91,12 @@ struct os_mbuf {
  */
 uint8_t om_pkthdr_len;
 /**
- * Length of data in this buffer 
+ * Length of data in this buffer
  */
 uint16_t om_len;
 
 /**
- * The mbuf pool this mbuf was allocated out of 
+ * The mbuf pool this mbuf was allocated out of
  */
 struct os_mbuf_pool *om_omp;
 
@@ -119,14 +119,14 @@ struct os_mqueue {
 /*
  * 

[mynewt-core] 01/01: Merge pull request #624 from wes3/gw_conf_tx

2017-10-18 Thread wes3
This is an automated email from the ASF dual-hosted git repository.

wes3 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit af48785a3e9c5a8176e0741bcfc68265628d47a4
Merge: 9ee8295 8d7f41b
Author: wes3 
AuthorDate: Wed Oct 18 10:12:57 2017 -0700

Merge pull request #624 from wes3/gw_conf_tx

Gw conf tx

 apps/lora_app_shell/pkg.yml|   2 +
 apps/lora_app_shell/src/las_cmd.c  |   5 +
 apps/lora_app_shell/src/main.c |  16 ++
 apps/lora_app_shell/syscfg.yml |   3 +
 kernel/os/include/os/os_mbuf.h |  66 ++---
 net/lora/node/include/node/lora.h  |  10 +-
 net/lora/node/include/node/lora_priv.h |  10 +-
 net/lora/node/src/lora_app.c   |  12 +
 net/lora/node/src/lora_node.c  |  87 +--
 net/lora/node/src/mac/LoRaMac.c|  98 +---
 net/oic/include/oic/port/oc_connectivity.h |  12 +
 net/oic/pkg.yml|  19 +-
 net/oic/src/port/mynewt/adaptor.c  |  21 ++
 net/oic/src/port/mynewt/adaptor.h  |   6 +
 net/oic/src/port/mynewt/lora_adaptor.c | 376 +
 net/oic/syscfg.yml |   6 +
 16 files changed, 653 insertions(+), 96 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[mynewt-core] branch master updated (cada0cf -> 9ee8295)

2017-10-18 Thread marko
This is an automated email from the ASF dual-hosted git repository.

marko pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from cada0cf  Merge pull request #626 from rymanluk/build_fix
 add a48133c  Remove inclusion of bsp.h
 new 9ee8295  Merge pull request #625 from granaghan/patch-1

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 hw/hal/src/hal_flash.c | 1 -
 1 file changed, 1 deletion(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[mynewt-core] 01/01: Merge pull request #625 from granaghan/patch-1

2017-10-18 Thread marko
This is an automated email from the ASF dual-hosted git repository.

marko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 9ee82950cf89fec5d39f12d37666852eb099f850
Merge: cada0cf a48133c
Author: mkiiskila 
AuthorDate: Wed Oct 18 08:40:29 2017 -0700

Merge pull request #625 from granaghan/patch-1

Remove inclusion of bsp.h

 hw/hal/src/hal_flash.c | 1 -
 1 file changed, 1 deletion(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[GitHub] mkiiskila closed pull request #625: Remove inclusion of bsp.h

2017-10-18 Thread GitBox
mkiiskila closed pull request #625: Remove inclusion of bsp.h
URL: https://github.com/apache/mynewt-core/pull/625
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/hw/hal/src/hal_flash.c b/hw/hal/src/hal_flash.c
index 309941210..882291059 100644
--- a/hw/hal/src/hal_flash.c
+++ b/hw/hal/src/hal_flash.c
@@ -18,7 +18,6 @@
  */
 #include 
 #include 
-#include 
 
 #include "hal/hal_bsp.h"
 #include "hal/hal_flash.h"


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-core] 01/01: Merge pull request #626 from rymanluk/build_fix

2017-10-18 Thread rymek
This is an automated email from the ASF dual-hosted git repository.

rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit cada0cffdce27bd49502d5eb55bea98ce5f9deea
Merge: 8a3574b 56215ad
Author: Ɓukasz Rymanowski 
AuthorDate: Wed Oct 18 13:08:55 2017 +0200

Merge pull request #626 from rymanluk/build_fix

nimble/host: Fix build issue

 net/nimble/host/src/ble_hs_startup.c | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[mynewt-core] branch master updated (8a3574b -> cada0cf)

2017-10-18 Thread rymek
This is an automated email from the ASF dual-hosted git repository.

rymek pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from 8a3574b  BLE Host - Fix build errors for non-centrals.
 add 56215ad  nimble/host: Fix build issue
 new cada0cf  Merge pull request #626 from rymanluk/build_fix

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 net/nimble/host/src/ble_hs_startup.c | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[GitHub] rymanluk closed pull request #626: nimble/host: Fix build issue

2017-10-18 Thread git
rymanluk closed pull request #626: nimble/host: Fix build issue
URL: https://github.com/apache/mynewt-core/pull/626
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/net/nimble/host/src/ble_hs_startup.c 
b/net/nimble/host/src/ble_hs_startup.c
index c87daa230..5de4256ca 100644
--- a/net/nimble/host/src/ble_hs_startup.c
+++ b/net/nimble/host/src/ble_hs_startup.c
@@ -101,10 +101,10 @@ ble_hs_startup_read_buf_sz_tx(uint16_t *out_pktlen, 
uint16_t *out_max_pkts)
 static int
 ble_hs_startup_read_buf_sz(void)
 {
-uint16_t le_pktlen;
-uint16_t max_pkts;
-uint16_t pktlen;
-uint8_t le_max_pkts;
+uint16_t le_pktlen = 0;
+uint16_t max_pkts = 0;
+uint16_t pktlen = 0;
+uint8_t le_max_pkts = 0;
 int rc;
 
 rc = ble_hs_startup_le_read_buf_sz_tx(_pktlen, _max_pkts);
@@ -114,7 +114,7 @@ ble_hs_startup_read_buf_sz(void)
 
 if (le_pktlen != 0) {
 pktlen = le_pktlen;
-max_pkts = le_max_pkts;   
+max_pkts = le_max_pkts;
 } else {
 rc = ble_hs_startup_read_buf_sz_tx(, _pkts);
 if (rc != 0) {


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services