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
......@@ -87,7 +87,7 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) {
if (emu_tasks[id].i_put == -1) {
// queue is full
printf("ets_post: task %d queue full\n", prio);
return false;
return 1;
}
q = &q[emu_tasks[id].i_put++];
q->sig = sig;
......@@ -104,7 +104,7 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) {
ets_intr_unlock();
return true;
return 0;
#endif
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment