mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/xbee: Use NETOPT_MAX_DPU_SIZE
Updated xbee to use NETOPT_MAX_DPU_SIZE instead of the deprecated NETOPT_MAX_PACKET_SIZE
This commit is contained in:
parent
09335b07dd
commit
a3f1f21410
@ -770,7 +770,7 @@ static int xbee_get(netdev_t *ndev, netopt_t opt, void *value, size_t max_len)
|
||||
return sizeof(eui64_t);
|
||||
case NETOPT_CHANNEL:
|
||||
return _get_channel(dev, (uint8_t *)value, max_len);
|
||||
case NETOPT_MAX_PACKET_SIZE:
|
||||
case NETOPT_MAX_PDU_SIZE:
|
||||
if (max_len < sizeof(uint16_t)) {
|
||||
return -EOVERFLOW;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user