[riot-notifications] [RIOT-OS/RIOT] cc110x: fix NETOPT_MAX_PACKET_SIZE to type according to netopt_t doc (#8026)
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)
assert(value_len > 1);
*((uint16_t *)value) = (uint16_t)cc110x->radio_channel;
- return 2;
+ return sizeof(uint16_t);
assert(value_len > 0);
*((uint8_t *)value) = cc110x->radio_address;
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications