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).
* nuttx/arch/arm/src/sam34/sam4l_clockconfig.c: Now selects an
optimal power scaling mode (2013-6-6).
* modified: nuttx/arch/arm/src/stm32/stm32_serial.c
# modified: nuttx/drivers/serial/Kconfig
# modified: nuttx/include/nuttx/serial/serial.h
# modified: nuttx/include/termios.h
A:wq\
A
* nuttx/arch/arm/src/stm32/stm32_serial.c and nuttx/include/termios.h:
Change for hardware flow control support for STM32. It also fixes
incorrect operation of USART2 and UART5 in current master. Submitted
by Lorenz Meier but includes changes by Mike Smith (2013-6-6).
* nuttx/arch/arm/src/stm32/stm32_otgfshost.c: A backward conditional
prevent detection of disonnection events. Reported by Scott (2013-6-6).

View File

@ -1,7 +1,7 @@
/*******************************************************************************
* 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>
*
* 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? */
if (!priv->connected)
if (priv->connected)
{
/* Yes.. then we no longer connected */