mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:22:32 +08:00
networking: Fix one place where the reference count was not being zeroed. This is really a cosmetic fix UNLESS CONFIG_DEBUG_NET is enabled, then it causes assertions
This commit is contained in:
@@ -242,6 +242,18 @@ void weak_function stm32_usbinitialize(void);
|
|||||||
int stm32_usbhost_initialize(void);
|
int stm32_usbhost_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/****************************************************************************************************
|
||||||
|
* Name: stm32_led_initialize
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Initialize LEDs
|
||||||
|
*
|
||||||
|
****************************************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
void stm32_autoled_initialize(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************************************
|
/****************************************************************************************************
|
||||||
* Name: stm32_extmemgpios
|
* Name: stm32_extmemgpios
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -224,10 +224,10 @@ static void led_setonoff(unsigned int bits)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: board_led_initialize
|
* Name: stm32_autoled_initialize
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void board_led_initialize(void)
|
void stm32_autoled_initialize(void)
|
||||||
{
|
{
|
||||||
/* Configure LED1-4 GPIOs for output */
|
/* Configure LED1-4 GPIOs for output */
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ void stm32_boardinitialize(void)
|
|||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
board_led_initialize();
|
stm32_autoled_initialize();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user