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/08/01 21:13:21 UTC

incubator-mynewt-core git commit: bootutil; change the order in which image swap progress is recorded.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 403e89922 -> 030dcb5a0


bootutil; change the order in which image swap progress is recorded.


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

Branch: refs/heads/develop
Commit: 030dcb5a004f015983b37e70b540e5436478c533
Parents: 403e899
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Aug 1 14:12:21 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Aug 1 14:13:04 2016 -0700

----------------------------------------------------------------------
 libs/bootutil/src/bootutil_misc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/030dcb5a/libs/bootutil/src/bootutil_misc.c
----------------------------------------------------------------------
diff --git a/libs/bootutil/src/bootutil_misc.c b/libs/bootutil/src/bootutil_misc.c
index dd4c903..94536ef 100644
--- a/libs/bootutil/src/bootutil_misc.c
+++ b/libs/bootutil/src/bootutil_misc.c
@@ -261,13 +261,13 @@ boot_write_status(struct boot_status *bs)
     char str[12];
     int rc;
 
-    rc = conf_save_one("boot/status",
-      conf_str_from_value(CONF_INT32, &bs->state, str, sizeof(str)));
+    rc = conf_save_one("boot/len",
+      conf_str_from_value(CONF_INT32, &bs->length, str, sizeof(str)));
     if (rc) {
         return rc;
     }
-    return conf_save_one("boot/len",
-      conf_str_from_value(CONF_INT32, &bs->length, str, sizeof(str)));
+    return conf_save_one("boot/status",
+      conf_str_from_value(CONF_INT32, &bs->state, str, sizeof(str)));
 }
 
 /**