[riot-notifications] [RIOT-OS/RIOT] at86rf2xx: add NETOPT_TX_RETRIES_NEEDED support (#7484)

Koen Zandberg notifications at github.com
Thu Sep 28 19:54:56 CEST 2017


bergzand commented on this pull request.



> @@ -561,6 +568,10 @@ static void _isr(netdev_t *netdev)
                 at86rf2xx_set_state(dev, dev->idle_state);
                 DEBUG("[at86rf2xx] return to state 0x%x\n", dev->idle_state);
             }
+#if defined(MODULE_AT86RF232) || defined(MODULE_AT86RF233)
+            dev->tx_retries = at86rf2xx_reg_read(dev, AT86RF2XX_REG__XAH_CTRL_2) >>
+                              AT86RF2XX_XAH_CTRL_2__ARET_FRAME_RETRIES_OFFSET;

Yes, I think that's a bit better too, makes it easier if anything changes with future at86rf versions too

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/7484#discussion_r141690958
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170928/d2d42abc/attachment.html>


More information about the notifications mailing list