Skip to content

Commit

Permalink
Merge pull request #4844 from cgundogan/pr/kw2xrf/fix_xmit
Browse files Browse the repository at this point in the history
kw2xrf: wait for previous transmissions to end
  • Loading branch information
cgundogan committed Feb 18, 2016
2 parents 1fe1650 + 698191e commit 028ec42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/kw2xrf/kw2xrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,10 @@ int kw2xrf_send(gnrc_netdev_t *netdev, gnrc_pktsnip_t *pkt)
int index = 0;
kw2xrf_t *dev = (kw2xrf_t *) netdev;

if ((dev->option & KW2XRF_OPT_PRELOADING) == NETOPT_DISABLE) {
kw2xrf_set_sequence(dev, XCVSEQ_TRANSMIT);
}

if (pkt == NULL) {
return -ENOMSG;
}
Expand Down

0 comments on commit 028ec42

Please sign in to comment.