diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-27 16:26:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-27 16:26:54 +0000 |
commit | 3c20b3a3cde677efa2963609d44954bfaf9c19a1 (patch) | |
tree | 891e1514df4ca8a7262bc388d93e83ed5a9da733 /apps/nshlib/nsh_netinit.c | |
parent | 8c5b57d449bae1b9f5b3b501356e486439f93ae0 (diff) | |
download | px4-firmware-3c20b3a3cde677efa2963609d44954bfaf9c19a1.tar.gz px4-firmware-3c20b3a3cde677efa2963609d44954bfaf9c19a1.tar.bz2 px4-firmware-3c20b3a3cde677efa2963609d44954bfaf9c19a1.zip |
Add chip ID funcitions for Shenzhou and Cloudctrl boards; Extened NSH ifconfig command and improve DHCPC -- All from Darcy Gong
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5393 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/nshlib/nsh_netinit.c')
-rw-r--r-- | apps/nshlib/nsh_netinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/nshlib/nsh_netinit.c b/apps/nshlib/nsh_netinit.c index bb1c73dff..58d238312 100644 --- a/apps/nshlib/nsh_netinit.c +++ b/apps/nshlib/nsh_netinit.c @@ -156,7 +156,7 @@ int nsh_netinit(void) { struct dhcpc_state ds; (void)dhcpc_request(handle, &ds); - uip_sethostaddr("eth1", &ds.ipaddr); + uip_sethostaddr("eth0", &ds.ipaddr); if (ds.netmask.s_addr != 0) { uip_setnetmask("eth0", &ds.netmask); |