cpu/esp32: change netopt in esp_eth for lwIP
This commit is contained in:
parent
be688f51c6
commit
2e4e3507bd
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user