You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by we...@apache.org on 2017/03/24 23:15:51 UTC

[29/50] [abbrv] incubator-mynewt-core git commit: MYNEWT-676 Reboot counter value inconsistent

MYNEWT-676 Reboot counter value inconsistent

Always call conf_load() before initializing reboot log / reboot counter.


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

Branch: refs/heads/nrf_cputime
Commit: 63546eff51b42ab2c4329c22d27b43c66b1ed966
Parents: 35323c2
Author: Christopher Collins <cc...@apache.org>
Authored: Fri Mar 17 15:20:56 2017 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Fri Mar 17 15:20:56 2017 -0700

----------------------------------------------------------------------
 apps/testbench/src/testbench.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/63546eff/apps/testbench/src/testbench.c
----------------------------------------------------------------------
diff --git a/apps/testbench/src/testbench.c b/apps/testbench/src/testbench.c
index bb96a7a..4029187 100644
--- a/apps/testbench/src/testbench.c
+++ b/apps/testbench/src/testbench.c
@@ -360,10 +360,10 @@ main(int argc, char **argv)
     cbmem_init(&cbmem, cbmem_buf, MAX_CBMEM_BUF);
     log_register("testlog", &testlog, &log_cbmem_handler, &cbmem, LOG_SYSLEVEL);
 
-    reboot_start(hal_reset_cause());
-
     conf_load();
 
+    reboot_start(hal_reset_cause());
+
     /*
      * Register the tests that can be run by lookup
      * - each test is added to the ts_suites slist