diff options
Diffstat (limited to 'nuttx/examples/uip/main.c')
-rw-r--r-- | nuttx/examples/uip/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c index 9cddb0ab9..f71a9a6dc 100644 --- a/nuttx/examples/uip/main.c +++ b/nuttx/examples/uip/main.c @@ -57,7 +57,7 @@ * our project as defined in the config/<board-name>/defconfig file */ -#define CONFIG_EXAMPLE_UIP_WEBSERVER 1 /* For now */ +#define CONFIG_EXAMPLE_UIP_DHCPC 1 /* For now */ #if defined(CONFIG_EXAMPLE_UIP_SMTP) # include <net/uip/smtp.h> @@ -135,6 +135,7 @@ int user_start(int argc, char *argv[]) uip_getmacaddr("eth0", mac); #endif +#if !defined(CONFIG_EXAMPLE_UIP_DHCPC) /* Set up our host address */ uip_ipaddr(addr.s_addr, 192, 168, 0, 128 ); @@ -149,6 +150,7 @@ int user_start(int argc, char *argv[]) uip_ipaddr(addr.s_addr, 255, 255, 255, 0); uip_setnetmask("eth0", &addr); +#endif #if defined(CONFIG_EXAMPLE_UIP_WEBSERVER) httpd_init(); |