[riot-notifications] [RIOT-OS/RIOT] cc110x: fix NETOPT_MAX_PACKET_SIZE to type according to netopt_t doc (#8026)

Martine Lenders notifications at github.com
Fri Dec 1 13:27:06 CET 2017


miri64 commented on this pull request.



> @@ -103,15 +103,15 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t value_len)
         case NETOPT_CHANNEL:
             assert(value_len > 1);
             *((uint16_t *)value) = (uint16_t)cc110x->radio_channel;
-            return 2;
+            return sizeof(uint16_t);
         case NETOPT_ADDRESS:
             assert(value_len > 0);
             *((uint8_t *)value) = cc110x->radio_address;
             return 1;

Addresses for the cc11xx are 1 byte long, so I'm not sure I understand your unspecific question ;) 

-- 
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/8026#discussion_r154334066
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20171201/d9090a0e/attachment-0001.html>


More information about the notifications mailing list