Skip to content
Snippets Groups Projects
Commit 3fe047f0 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/ets_alt_task: ets_post: Should return 0 on success, !0 - failure.

parent 4ab3eef8
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) { ...@@ -87,7 +87,7 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) {
if (emu_tasks[id].i_put == -1) { if (emu_tasks[id].i_put == -1) {
// queue is full // queue is full
printf("ets_post: task %d queue full\n", prio); printf("ets_post: task %d queue full\n", prio);
return false; return 1;
} }
q = &q[emu_tasks[id].i_put++]; q = &q[emu_tasks[id].i_put++];
q->sig = sig; q->sig = sig;
...@@ -104,7 +104,7 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) { ...@@ -104,7 +104,7 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) {
ets_intr_unlock(); ets_intr_unlock();
return true; return 0;
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment