mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 15:31:17 +01:00
cpu/esp_common: Use NETOPT_MAX_PDU_SIZE
Updated esp_now to use NETOPT_MAX_PDU_SIZE instead of the deprecated NETOPT_MAX_PACKET_SIZE.
This commit is contained in:
parent
aaacd16248
commit
7a05fc09f3
@ -627,7 +627,7 @@ static int _get(netdev_t *netdev, netopt_t opt, void *val, size_t max_len)
|
||||
break;
|
||||
#endif
|
||||
|
||||
case NETOPT_MAX_PACKET_SIZE:
|
||||
case NETOPT_MAX_PDU_SIZE:
|
||||
CHECK_PARAM_RET(max_len >= sizeof(uint16_t), -EOVERFLOW);
|
||||
*((uint16_t *)val) = ESP_NOW_MAX_SIZE;
|
||||
res = sizeof(uint16_t);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user