diff --git a/LWIP/App/lwip.c b/LWIP/App/lwip.c index 82bfb933..7ac5a68a 100644 --- a/LWIP/App/lwip.c +++ b/LWIP/App/lwip.c @@ -63,10 +63,10 @@ void MX_LWIP_Init(void) lwip_init(); /* IP addresses initialization with DHCP (IPv4) */ - ipaddr.addr = 0; - netmask.addr = 0; - gw.addr = 0; - + +IP4_ADDR(&ipaddr, 192, 168, 1, 2); + IP4_ADDR(&netmask, 255, 255, 255, 0); + IP4_ADDR(&gw, 192, 168, 1, 1); /* add the network interface (IPv4/IPv6) without RTOS */ netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, ðernet_input); @@ -80,7 +80,7 @@ void MX_LWIP_Init(void) netif_set_link_callback(&gnetif, ethernet_link_status_updated); /* Start DHCP negotiation for a network interface (IPv4) */ - dhcp_start(&gnetif); +/* dhcp_start(&gnetif);*/ /* USER CODE BEGIN 3 */