Skip to content

Commit 9698a60

Browse files
committed
esp8266/ets_alt_task: Comment out debug output.
1 parent fcd6862 commit 9698a60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

esp8266/ets_alt_task.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static inline int prio2id(uint8_t prio) {
4242
return id;
4343
}
4444

45+
#if DEBUG
4546
void dump_task(int prio, volatile struct task_entry *t) {
4647
printf("q for task %d: queue: %p, get ptr: %d, put ptr: %d, qlen: %d\n",
4748
prio, t->queue, t->i_get, t->i_put, t->qlen);
@@ -55,6 +56,7 @@ void dump_tasks(void) {
5556
}
5657
printf("====\n");
5758
}
59+
#endif
5860

5961
bool ets_task(os_task_t task, uint8 prio, os_event_t *queue, uint8 qlen) {
6062
static unsigned cnt;
@@ -167,7 +169,9 @@ bool ets_run(void) {
167169
*(char*)0x3FFFC6FC = 0;
168170
ets_intr_lock();
169171
printf("ets_alt_task: ets_run\n");
172+
#if DEBUG
170173
dump_tasks();
174+
#endif
171175
ets_intr_unlock();
172176
while (1) {
173177
if (!ets_loop_iter()) {

0 commit comments

Comments
 (0)