Skip to content
Snippets Groups Projects
Commit 8e7c6cc2 authored by josar's avatar josar
Browse files

at86rf2xx/at86rf2xx_netdev: improve documentation.

It was not obvious where `dev->idle_state` was saved.
parent a79d0383
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
/* drop packet, continue receiving */
if (len > 0) {
/* set device back in operation state which was used before last transmission.
* e.g RX_AACK_ON */
* This state is saved in at86rf2xx.c/at86rf2xx_tx_prepare() e.g RX_AACK_ON */
at86rf2xx_set_state(dev, dev->idle_state);
}
......@@ -163,7 +163,7 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
if (pkt_len > len) {
at86rf2xx_fb_stop(dev);
/* set device back in operation state which was used before last transmission.
* e.g RX_AACK_ON */
* This state is saved in at86rf2xx.c/at86rf2xx_tx_prepare() e.g RX_AACK_ON */
at86rf2xx_set_state(dev, dev->idle_state);
return -ENOBUFS;
}
......@@ -219,7 +219,7 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
}
/* set device back in operation state which was used before last transmission.
* e.g RX_AACK_ON */
* This state is saved in at86rf2xx.c/at86rf2xx_tx_prepare() e.g RX_AACK_ON */
at86rf2xx_set_state(dev, dev->idle_state);
return pkt_len;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment