Hi my problem is:
1. I have to active a OsalEvent (I´m using SampleApp of Zstack), I´m doing that using: osal_set_event ( PUBLIC_task_id_contratador, EVENT_contratation_start). This event is in contratador.c file.
2. Once I active this event, inside of the event I have to do something like that:
if (events & EVENT_contratation_start){
osal_set_event ( PUBLIC_task_id_comunicador, EVENT_comunication_start) // this event is in comunicador.c file
return ( events ^ EVENT_contratation_start);
}
3. Inside of comunicador.c file, I have to do a similar proccess.
Only the first event is set.
This is the problem.