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


The following commit(s) were added to refs/heads/master by this push:
     new bb33db4  flash_loader; initialize watchdog in the start.
     new 902aa6c  Merge pull request #1632 from mkiiskila/flash_loader_wdog_init
bb33db4 is described below

commit bb33db4e264550e327b46f19354eabd4faa4db98
Author: Marko Kiiskila <ma...@apache.org>
AuthorDate: Mon Feb 4 19:35:41 2019 +0200

    flash_loader; initialize watchdog in the start.
---
 apps/flash_loader/src/fl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/flash_loader/src/fl.c b/apps/flash_loader/src/fl.c
index f714024..9c57588 100644
--- a/apps/flash_loader/src/fl.c
+++ b/apps/flash_loader/src/fl.c
@@ -172,6 +172,8 @@ main(int argc, char **argv)
 
     hal_bsp_init();
     flash_map_init();
+    hal_watchdog_init(MYNEWT_VAL(WATCHDOG_INTERVAL));
+    hal_watchdog_enable();
 
     fl_data = malloc(MYNEWT_VAL(FLASH_LOADER_DL_SZ));
     assert(fl_data);

Reply via email to