Fix a backward conditional that cause the STM32 usb host driver to fail to detect disconnection events. From Scott

This commit is contained in:
Gregory Nutt 2013-06-06 15:00:18 -06:00
parent 3edec35c51
commit 168702f7e1
2 changed files with 8 additions and 10 deletions

View File

@ -4914,11 +4914,9 @@
register definitions for the SAM4L BMP and SCIF blocks (2013-6-6). register definitions for the SAM4L BMP and SCIF blocks (2013-6-6).
* nuttx/arch/arm/src/sam34/sam4l_clockconfig.c: Now selects an * nuttx/arch/arm/src/sam34/sam4l_clockconfig.c: Now selects an
optimal power scaling mode (2013-6-6). optimal power scaling mode (2013-6-6).
* modified: nuttx/arch/arm/src/stm32/stm32_serial.c * nuttx/arch/arm/src/stm32/stm32_serial.c and nuttx/include/termios.h:
# modified: nuttx/drivers/serial/Kconfig Change for hardware flow control support for STM32. It also fixes
# modified: nuttx/include/nuttx/serial/serial.h incorrect operation of USART2 and UART5 in current master. Submitted
# modified: nuttx/include/termios.h by Lorenz Meier but includes changes by Mike Smith (2013-6-6).
A:wq\ * nuttx/arch/arm/src/stm32/stm32_otgfshost.c: A backward conditional
prevent detection of disonnection events. Reported by Scott (2013-6-6).
A

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
* arch/arm/src/stm32/stm32_otgfshost.c * arch/arm/src/stm32/stm32_otgfshost.c
* *
* Copyright (C) 2012 Gregory Nutt. All rights reserved. * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
* Authors: Gregory Nutt <gnutt@nuttx.org> * Authors: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -2176,7 +2176,7 @@ static void stm32_gint_disconnected(FAR struct stm32_usbhost_s *priv)
{ {
/* Were we previously connected? */ /* Were we previously connected? */
if (!priv->connected) if (priv->connected)
{ {
/* Yes.. then we no longer connected */ /* Yes.. then we no longer connected */