Skip to content

Commit 7261f17

Browse files
dpgeorgepfalcon
authored andcommitted
esp8266: Feed WDT in ets_loop_iter().
1 parent 97c2628 commit 7261f17

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

esp8266/ets_alt_task.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "os_type.h"
44
#include "ets_sys.h"
55
#include "etshal.h"
6+
#include "user_interface.h"
67

78
// Use standard ets_task or alternative impl
89
#define USE_ETS_TASK 0
@@ -103,6 +104,7 @@ bool ets_loop_iter(void) {
103104
//static unsigned cnt;
104105
bool progress = false;
105106
for (volatile struct task_entry *t = emu_tasks; t < &emu_tasks[MP_ARRAY_SIZE(emu_tasks)]; t++) {
107+
system_soft_wdt_feed();
106108
ets_intr_lock();
107109
//printf("etc_loop_iter: "); dump_task(t - emu_tasks + FIRST_PRIO, t);
108110
if (t->i_get != t->i_put) {

0 commit comments

Comments
 (0)