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 78681b6d8f
commit 1029074cc6
1 changed files with 2 additions and 2 deletions

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 */