mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
set usbDetectPin to input pull down
This commit is contained in:
parent
06d9f54f77
commit
148ee91b1f
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ void usbCableDetectInit(void)
|
|||
usbDetectPin = IOGetByTag(IO_TAG(USB_DETECT_PIN));
|
||||
|
||||
IOInit(usbDetectPin, OWNER_USB_DETECT, 0);
|
||||
IOConfigGPIO(usbDetectPin, IOCFG_OUT_PP);
|
||||
IOConfigGPIO(usbDetectPin, IOCFG_IPD);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue