cpu/esp32: change netopt in esp_eth for lwIP

This commit is contained in:
Gunar Schorcht 2019-12-14 16:59:10 +01:00
parent be688f51c6
commit 2e4e3507bd

View File

@ -280,7 +280,7 @@ static int _esp_eth_get(netdev_t *netdev, netopt_t opt, void *val, size_t max_le
switch (opt) {
case NETOPT_ADDRESS:
assert(max_len == ETHERNET_ADDR_LEN);
assert(max_len >= ETHERNET_ADDR_LEN);
esp_eth_get_mac((uint8_t *)val);
return ETHERNET_ADDR_LEN;
case NETOPT_LINK_CONNECTED: