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

Carton32 notifications at github.com
Thu May 23 15:23:20 CEST 2019


Carton32 commented on this pull request.



>                  *((netopt_enable_t *)val) = NETOPT_ENABLE;
             }
             else {
                 *((netopt_enable_t *)val) = NETOPT_DISABLE;
             }
             res = sizeof(netopt_enable_t);
             break;
+        }
+
+        case NETOPT_LAST_ED_LEVEL:
+            if (max_len < sizeof(int8_t)) {
+                res = -EOVERFLOW;
+            }
+            else {
+              *((int8_t *)val) = mrf24j40_get_ed_level(dev);

I've made your corrections ! Thank you for your help :) (and sorry for being such a noob X)

-- 
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#discussion_r286939509
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190523/97748066/attachment.html>


More information about the notifications mailing list