mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +00:00
Minor fix (use ETHARP_HWADDR_LEN)
This commit is contained in:
parent
6c10282f9a
commit
231d965bcb
@ -362,7 +362,7 @@ Call these functions in the order of appearance:
|
|||||||
{
|
{
|
||||||
u8_t i;
|
u8_t i;
|
||||||
|
|
||||||
for(i = 0; i < 6; i++) netif->hwaddr[i] = some_eth_addr[i];
|
for(i = 0; i < ETHARP_HWADDR_LEN; i++) netif->hwaddr[i] = some_eth_addr[i];
|
||||||
init_my_eth_device();
|
init_my_eth_device();
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ low_level_init(struct netif *netif)
|
|||||||
struct ethernetif *ethernetif = netif->state;
|
struct ethernetif *ethernetif = netif->state;
|
||||||
|
|
||||||
/* set MAC hardware address length */
|
/* set MAC hardware address length */
|
||||||
netif->hwaddr_len = 6;
|
netif->hwaddr_len = ETHARP_HWADDR_LEN;
|
||||||
|
|
||||||
/* set MAC hardware address */
|
/* set MAC hardware address */
|
||||||
netif->hwaddr[0] = ;
|
netif->hwaddr[0] = ;
|
||||||
|
Loading…
Reference in New Issue
Block a user