8000 esp8266/ets_alt_task: ets_post: Should return 0 on success, !0 - fail… · sparkfun/circuitpython@3fe047f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fe047f

Browse files
committed
esp8266/ets_alt_task: ets_post: Should return 0 on success, !0 - failure.
1 parent 4ab3eef commit 3fe047f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esp8266/ets_alt_task.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) {
8787
if (emu_tasks[id].i_put == -1) {
8888
// queue is full
8989
printf("ets_post: task %d queue full\n", prio);
90-
return false;
90+
return 1;
9191
}
9292
q = &q[emu_tasks[id].i_put++];
9393
q->sig = sig;
@@ -104,7 +104,7 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) {
104104

105105
ets_intr_unlock();
106106

107-
return true;
107+
return 0;
108108
#endif
109109
}
110110

0 commit comments

Comments
 (0)
0