summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorArdaFu <[email protected]>2017-11-02 15:34:37 +0800
committerArdaFu <[email protected]>2017-11-02 15:34:37 +0800
commit9ba62ab5e6b6282f79c0d1b58738b1026bafce75 (patch)
treec0d63bba0089c787aa8f5ce09870c1a707f5d366 /components/net
parentb2057f506a09e2adef81fc77efd697d16ae14bec (diff)
[components][net] Fix the bug that missing define RT_LWIP_IPADDR/MASKADDR/GWADDR when disable DHCP.
Diffstat (limited to 'components/net')
-rw-r--r--components/net/KConfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/KConfig b/components/net/KConfig
index cd758cd33a..b5f50de180 100644
--- a/components/net/KConfig
+++ b/components/net/KConfig
@@ -55,7 +55,7 @@ config RT_USING_LWIP
default n
endif
- if !RT_LWIP_DHCP
+ menu "Static IPv4 Address"
config RT_LWIP_IPADDR
string "IPv4: IP address"
default 192.168.1.30
@@ -67,7 +67,7 @@ config RT_USING_LWIP
config RT_LWIP_MSKADDR
string "IPv4: Mask address"
default 255.255.255.0
- endif
+ endmenu
config RT_LWIP_UDP
bool "UDP protocol"