Merge pull request #2610 from DieHertz/fix-usb-disconnect

Fixed USB disconnect (pull LOW for 200 ms)
This commit is contained in:
Michael Keller 2017-03-10 14:35:03 +13:00 committed by GitHub
commit 4e39aa2a96
1 changed files with 2 additions and 2 deletions

View File

@ -68,10 +68,10 @@ void usbGenerateDisconnectPulse(void)
IO_t usbPin = IOGetByTag(IO_TAG(PA12));
IOConfigGPIO(usbPin, IOCFG_OUT_OD);
IOHi(usbPin);
IOLo(usbPin);
delay(200);
IOLo(usbPin);
IOHi(usbPin);
}
#endif