You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2016/08/03 21:58:02 UTC

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

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

Branch: refs/heads/sterly_refactor
Commit: 447699b69964d70615772b255f4302efc879aa19
Parents: 3ceb8ae
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Aug 1 14:12:21 2016 -0700
Committer: Sterling Hughes <st...@apache.org>
Committed: Wed Aug 3 14:57:50 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/447699b6/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)));
 }
 
 /**