You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/06/25 00:34:04 UTC

[1/3] incubator-mynewt-core git commit: config; allow CLI to display max size variable value.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop cd0793ada -> fd0a8993b


config; allow CLI to display max size variable value.


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

Branch: refs/heads/develop
Commit: 6b829a0599587c9caacc082c037708e654715c1a
Parents: cd0793a
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Jun 24 15:24:54 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Jun 24 15:24:54 2016 -0700

----------------------------------------------------------------------
 sys/config/src/config_cli.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/6b829a05/sys/config/src/config_cli.c
----------------------------------------------------------------------
diff --git a/sys/config/src/config_cli.c b/sys/config/src/config_cli.c
index 50cfd23..7c39598 100644
--- a/sys/config/src/config_cli.c
+++ b/sys/config/src/config_cli.c
@@ -74,7 +74,7 @@ shell_conf_command(int argc, char **argv)
 {
     char *name = NULL;
     char *val = NULL;
-    char tmp_buf[16];
+    char tmp_buf[CONF_MAX_VAL_LEN + 1];
     int rc;
 
     switch (argc) {


[2/3] incubator-mynewt-core git commit: boot_serial; fix test code.

Posted by ma...@apache.org.
boot_serial; fix test code.


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

Branch: refs/heads/develop
Commit: 7dbc0d0463db2db6c727e3a49fb1665dbbaa7a68
Parents: 6b829a0
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Jun 24 17:21:54 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Jun 24 17:21:54 2016 -0700

----------------------------------------------------------------------
 libs/boot_serial/pkg.yml              | 1 +
 libs/boot_serial/src/test/boot_test.c | 8 +++-----
 2 files changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7dbc0d04/libs/boot_serial/pkg.yml
----------------------------------------------------------------------
diff --git a/libs/boot_serial/pkg.yml b/libs/boot_serial/pkg.yml
index 0b66bb6..4a98343 100644
--- a/libs/boot_serial/pkg.yml
+++ b/libs/boot_serial/pkg.yml
@@ -29,6 +29,7 @@ pkg.deps:
     - hw/hal
     - libs/os
     - libs/testutil
+    - libs/bootutil
     - libs/util
 pkg.req_apis:
     - console

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7dbc0d04/libs/boot_serial/src/test/boot_test.c
----------------------------------------------------------------------
diff --git a/libs/boot_serial/src/test/boot_test.c b/libs/boot_serial/src/test/boot_test.c
index 3859b46..e11a649 100644
--- a/libs/boot_serial/src/test/boot_test.c
+++ b/libs/boot_serial/src/test/boot_test.c
@@ -26,8 +26,6 @@
 #include <util/base64.h>
 #include <util/crc16.h>
 #include <testutil/testutil.h>
-#include <newtmgr/newtmgr.h>
-#include <imgmgr/imgmgr.h>
 #include <hal/hal_flash.h>
 #include <hal/flash_map.h>
 
@@ -101,7 +99,7 @@ TEST_CASE(boot_serial_empty_img_msg)
     hdr = (struct nmgr_hdr *)buf;
     memset(hdr, 0, sizeof(*hdr));
     hdr->nh_op = NMGR_OP_WRITE;
-    hdr->nh_group = NMGR_GROUP_ID_IMAGE;
+    hdr->nh_group = htons(NMGR_GROUP_ID_IMAGE);
     hdr->nh_id = IMGMGR_NMGR_OP_UPLOAD;
     hdr->nh_len = htons(2);
     strcpy((char *)(hdr + 1), "{}");
@@ -126,7 +124,7 @@ TEST_CASE(boot_serial_img_msg)
     hdr = (struct nmgr_hdr *)buf;
     memset(hdr, 0, sizeof(*hdr));
     hdr->nh_op = NMGR_OP_WRITE;
-    hdr->nh_group = NMGR_GROUP_ID_IMAGE;
+    hdr->nh_group = htons(NMGR_GROUP_ID_IMAGE);
     hdr->nh_id = IMGMGR_NMGR_OP_UPLOAD;
 
     len = sprintf((char *)(hdr + 1), "{\"off\":0,\"len\":16,\"data\":\"%s\"}",
@@ -171,7 +169,7 @@ TEST_CASE(boot_serial_upload_bigger_image)
         hdr = (struct nmgr_hdr *)buf;
         memset(hdr, 0, sizeof(*hdr));
         hdr->nh_op = NMGR_OP_WRITE;
-        hdr->nh_group = NMGR_GROUP_ID_IMAGE;
+        hdr->nh_group = htons(NMGR_GROUP_ID_IMAGE);
         hdr->nh_id = IMGMGR_NMGR_OP_UPLOAD;
 
         if (off) {


[3/3] incubator-mynewt-core git commit: bletest; printf string was not working for some native targets..

Posted by ma...@apache.org.
bletest; printf string was not working for some native targets..


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

Branch: refs/heads/develop
Commit: fd0a8993b4b9557d0baf9bd2562a8e6ab1e40ebb
Parents: 7dbc0d0
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Jun 24 17:32:03 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Jun 24 17:32:03 2016 -0700

----------------------------------------------------------------------
 apps/bletest/src/main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/fd0a8993/apps/bletest/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletest/src/main.c b/apps/bletest/src/main.c
index fa32f89..e132f32 100755
--- a/apps/bletest/src/main.c
+++ b/apps/bletest/src/main.c
@@ -922,8 +922,11 @@ bletest_task_handler(void *arg)
     /* Read unique HW id */
     rc = bsp_hw_id((void *)&g_bletest_hw_id[0], sizeof(g_bletest_hw_id));
     assert(rc == 16);
-    console_printf("HW id=%04lx%04lx%04lx%04lx\n", g_bletest_hw_id[0],
-                   g_bletest_hw_id[1], g_bletest_hw_id[2], g_bletest_hw_id[3]);
+    console_printf("HW id=%04x%04x%04x%04x\n",
+                   (unsigned int)g_bletest_hw_id[0],
+                   (unsigned int)g_bletest_hw_id[1],
+                   (unsigned int)g_bletest_hw_id[2],
+                   (unsigned int)g_bletest_hw_id[3]);
 
     /* Set the event mask we want to display */
     event_mask = 0x7FF;