Hi,
I got a question from my customer about PT_WAIT_UNTIL() usage.
They wants to send data to specified node, then wait until ACK returns.
PT_WAIT_UNTIL() function is used like below codes, but the function does not return.
/*** Radio tx/rx ***/ radio_mode = 0; // Unicast Mode radio_flag = 1; // Send(TX) radio_rx_flag = 0; // Receive(RX) process_poll(&udp_unicast_process); etimer_set(&et, (5 * CLOCK_SECOND)); // process_post(&udp_unicast_process, PROCESS_EVENT_SEND, s_tTxRadioData); PT_WAIT_UNTIL(pt, 1 == radio_rx_flag || etimer_expired(&et));
Customer thought either raio_rx_flag or etimer condition is met, the PT_WAIT_UNTIL() returns.
They confirmed both conditions are met.
Is there any reason or condition PT_WAIT_UNTIL() does not return?
Please let me know if you need more information from customer.
Thanks and regards,
KoT