1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

set usbDetectPin to input pull down

This commit is contained in:
czchc 2019-02-28 14:52:46 +08:00
parent 06d9f54f77
commit 148ee91b1f

View file

@ -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
}