diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-15 02:25:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-15 02:25:06 +0000 |
commit | d58517b1ba80c3121b7f0c1689069e6f7c2d6c63 (patch) | |
tree | 877f21a77f438bf7658b0524be9427c72d1a6762 /nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c | |
parent | c2111d312b08f0f2d92359f49ea6d9fa0c45c5d0 (diff) | |
download | px4-nuttx-d58517b1ba80c3121b7f0c1689069e6f7c2d6c63.tar.gz px4-nuttx-d58517b1ba80c3121b7f0c1689069e6f7c2d6c63.tar.bz2 px4-nuttx-d58517b1ba80c3121b7f0c1689069e6f7c2d6c63.zip |
Fix compile errors with debug on
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3111 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c')
-rw-r--r-- | nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c index 5e3ba537e..dd37c560f 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c @@ -1970,8 +1970,8 @@ static inline int lpc17_phyinit(struct lpc17_driver_s *priv) #endif ndbg("%dBase-T %s duplex\n", - priv->lp_mode & LPC17_SPEED_MASK == LPC17_SPEED_100 ? 100 : 10, - priv->lp_mode & LPC17_DUPLEX_MASK == LPC17_DUPLEX_FULL ?"full" : "half"); + (priv->lp_mode & LPC17_SPEED_MASK) == LPC17_SPEED_100 ? 100 : 10, + (priv->lp_mode & LPC17_DUPLEX_MASK) == LPC17_DUPLEX_FULL ?"full" : "half"); /* Disable auto-configuration. Set the fixed speed/duplex mode. * (probably more than little redundant). @@ -2281,7 +2281,7 @@ static inline int lpc17_ethinitialize(int intf) int ret; int i; - DEBUGASSERT(inf < LPC17_NETHCONTROLLERS); + DEBUGASSERT(intf < LPC17_NETHCONTROLLERS); priv = &g_ethdrvr[intf]; /* Turn on the ethernet MAC clock */ |