Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reset bus to powerOn state on disconnect

This is needed to reliably handle uplugging and replugging devices

Signed-off-by: Erik Gilling <konkers@android.com>
commit 1645cc70b2a5fbec2e67291bbf9f0f05361f6613 1 parent 60d7e60
Erik Gilling authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Max3421e.cpp
View
3  Max3421e.cpp
@@ -194,6 +194,7 @@ void MAX3421E::busprobe( void )
vbusState = SE1;
break;
case( bmSE0 ): //disconnected state
+ regWr( rMODE, bmDPPULLDN|bmDMPULLDN|bmHOST|bmSEPIRQ);
vbusState = SE0;
break;
}//end switch( bus_sample )
@@ -267,4 +268,4 @@ byte MAX3421E::GpxHandler()
//{
//
//
-//}
+//}
Please sign in to comment.
Something went wrong with that request. Please try again.