Make sure the master radio tasks don't get stuck waiting for an
incoming packet again by aborting the radio each time we poke the
tasks.
Signed-off-by: Keith Packard <keithp@keithp.com>
for (c = 0; (ao_packet_tx_used || ao_tx_packet.len) && c < 10; c++)
ao_delay(AO_MS_TO_TICKS(100));
ao_packet_enable = 0;
- ao_radio_abort();
while (ao_packet_echo_task.wchan || ao_packet_task.wchan) {
+ ao_radio_abort();
ao_wake_task(&ao_packet_echo_task);
ao_wake_task(&ao_packet_task);
ao_yield();