From 4350a9ef77a3e0c6170d74e68722943978717d5b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 17 Jan 2015 10:01:55 -0600 Subject: Tiva Ethernet: Remove assertion. Just log and error and continue --- nuttx/arch/arm/src/tiva/tm4c_ethernet.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nuttx') diff --git a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c index 14acdab76..a0928b326 100644 --- a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c +++ b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c @@ -1665,7 +1665,12 @@ static void tiva_receive(FAR struct tiva_ethmac_s *priv) * flasher leaves the hardware in a bad state(?). */ - DEBUGASSERT(dev->d_buf != NULL); + // DEBUGASSERT(dev->d_buf != NULL); + if (dev->d_buf == NULL) + { + nlldbg("ERROR: Ignoring NULL I/O buffer\n"); + return; + } /* Loop while while tiva_recvframe() successfully retrieves valid * Ethernet frames. -- cgit v1.2.3