drivers/cc110x: Use NETOPT_MAX_DPU_SIZE
Updated cc110x to use NETOPT_MAX_DPU_SIZE instead of the deprecated NETOPT_MAX_PACKET_SIZE
This commit is contained in:
parent
646a7b79c8
commit
556a1e31ff
@ -109,7 +109,7 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t value_len)
|
|||||||
assert(value_len > 0);
|
assert(value_len > 0);
|
||||||
*((uint8_t *)value) = cc110x->radio_address;
|
*((uint8_t *)value) = cc110x->radio_address;
|
||||||
return sizeof(uint8_t);
|
return sizeof(uint8_t);
|
||||||
case NETOPT_MAX_PACKET_SIZE:
|
case NETOPT_MAX_PDU_SIZE:
|
||||||
assert(value_len > 0);
|
assert(value_len > 0);
|
||||||
*((uint16_t *)value) = CC110X_PACKET_LENGTH - CC110X_L2_HDR_SIZE;
|
*((uint16_t *)value) = CC110X_PACKET_LENGTH - CC110X_L2_HDR_SIZE;
|
||||||
return sizeof(uint16_t);
|
return sizeof(uint16_t);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user