Hi, all, I got a problem about os_wait1() function. When my task 1 used os_wait1(0) to sleep forever, I wish task 1 will wake up by other task using os_set_ready(1). It really does. But sometimes task 1 will wake up without any other task wake up it. So I checked the return value of os_wait1(). If task 1 is wake up by other task, the return value is 0x80 (RDY_EVENT). But if task 1 is wake up by unknown reason, the return value is 0. Any one can help me to fix this problem? or any suggestion?
Thanks a lot.
Best Regards, Shunekn