[riot-notifications] [RIOT-OS/RIOT] drivers/mrf24j40 : support of NETOPT_LAST_ED_LEVEL (#10771)

benpicco notifications at github.com
Thu May 23 15:41:38 CEST 2019


benpicco commented on this pull request.



> @@ -288,6 +288,16 @@ static int _get(netdev_t *netdev, netopt_t opt, void *val, size_t max_len)
             res = sizeof(netopt_enable_t);
             break;
 
+        case NETOPT_LAST_ED_LEVEL:
+            if (max_len < sizeof(int8_t)) {
+                res = -EOVERFLOW;
+            }
+            else {
+              mrf24j40_cca(dev, (int8_t *)val);
+              res = sizeof(int8_t);

please use 4 spaces for indentation 

-- 
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/10771#pullrequestreview-241209744
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190523/459f254f/attachment-0001.html>


More information about the notifications mailing list