[riot-notifications] [RIOT-OS/RIOT] gnrc_lorawan : Add ADR support (#15995)

Akshai M (Augustus Diode) notifications at github.com
Mon Jul 19 12:01:06 CEST 2021


@akshaim commented on this pull request.



> +    if (mac->mlme.adr && (mac->last_dr != 0)) {
+        mac->mlme.adr_ack = mac->mlme.adr_ack_cnt >= CONFIG_LORAMAC_DEFAULT_ADR_ACK_LIMIT;
+        if (mac->mlme.adr_ack && ((mac->mlme.adr_ack - CONFIG_LORAMAC_DEFAULT_ADR_ACK_LIMIT) \
+                                  % CONFIG_LORAMAC_DEFAULT_ADR_ACK_DELAY) == 0) {
+            DEBUG("gnrc_lorawan_mcps: ADRACKReq: Decrement DR\n");
+            mac->last_dr--;
+        }
+    }

Done.

-- 
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/15995#discussion_r672161717
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210719/8a12d118/attachment.htm>


More information about the notifications mailing list