You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/07 01:51:19 UTC

[incubator-nuttx] branch master updated: stm32_eth: Fix in assertion parameters.

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 60933f5a94 stm32_eth: Fix in assertion parameters.
60933f5a94 is described below

commit 60933f5a9453f6bffd5021928f34b2b5593148cf
Author: Fotis Panagiotopoulos <f....@gmail.com>
AuthorDate: Sun Nov 6 19:23:45 2022 +0200

    stm32_eth: Fix in assertion parameters.
---
 arch/arm/src/stm32/stm32_eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/stm32/stm32_eth.c b/arch/arm/src/stm32/stm32_eth.c
index 7fa8cd7e8c..e9c38e0628 100644
--- a/arch/arm/src/stm32/stm32_eth.c
+++ b/arch/arm/src/stm32/stm32_eth.c
@@ -1134,7 +1134,7 @@ static int stm32_transmit(struct stm32_ethmac_s *priv)
 
       /* Set frame size */
 
-      DEBUGASSERT(priv->dev.d_len <= CONFIG_NET_ETH_PKTSIZE);
+      DEBUGASSERT(priv->dev.d_len <= CONFIG_STM32_ETH_BUFSIZE);
       txdesc->tdes1 = priv->dev.d_len;
 
       /* Set the Buffer1 address pointer */