diff options
author | Damien George <damien.p.george@gmail.com> | 2015-12-22 14:27:35 +0000 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-11 09:15:06 +0700 |
commit | 7261f17b9ec21be706e5b8cb1173b46ed0985cc3 (patch) | |
tree | 9171771faacb1cba040bf9ab2e03405dd4519d10 | |
parent | 97c262890058896b0acd735b54d66d9ea19c3a53 (diff) | |
download | micropython-7261f17b9ec21be706e5b8cb1173b46ed0985cc3.tar.gz micropython-7261f17b9ec21be706e5b8cb1173b46ed0985cc3.zip |
esp8266: Feed WDT in ets_loop_iter().
-rw-r--r-- | esp8266/ets_alt_task.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/ets_alt_task.c b/esp8266/ets_alt_task.c index 9e56987432..ece7727f0b 100644 --- a/esp8266/ets_alt_task.c +++ b/esp8266/ets_alt_task.c @@ -3,6 +3,7 @@ #include "os_type.h" #include "ets_sys.h" #include "etshal.h" +#include "user_interface.h" // Use standard ets_task or alternative impl #define USE_ETS_TASK 0 @@ -103,6 +104,7 @@ bool ets_loop_iter(void) { //static unsigned cnt; bool progress = false; for (volatile struct task_entry *t = emu_tasks; t < &emu_tasks[MP_ARRAY_SIZE(emu_tasks)]; t++) { + system_soft_wdt_feed(); ets_intr_lock(); //printf("etc_loop_iter: "); dump_task(t - emu_tasks + FIRST_PRIO, t); if (t->i_get != t->i_put) { |