mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Fixed USB disconnect (pull LOW for 200 ms)
This commit is contained in:
parent
9b6bb823b9
commit
d9cb02e310
1 changed files with 2 additions and 2 deletions
|
@ -68,10 +68,10 @@ void usbGenerateDisconnectPulse(void)
|
||||||
IO_t usbPin = IOGetByTag(IO_TAG(PA12));
|
IO_t usbPin = IOGetByTag(IO_TAG(PA12));
|
||||||
IOConfigGPIO(usbPin, IOCFG_OUT_OD);
|
IOConfigGPIO(usbPin, IOCFG_OUT_OD);
|
||||||
|
|
||||||
IOHi(usbPin);
|
IOLo(usbPin);
|
||||||
|
|
||||||
delay(200);
|
delay(200);
|
||||||
|
|
||||||
IOLo(usbPin);
|
IOHi(usbPin);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue