1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Merge pull request #7675 from czchc/set_usb_detect_pin_ipd

set usbDetectPin to input pull down
This commit is contained in:
Michael Keller 2019-03-01 20:20:17 +13:00 committed by GitHub
commit 2aeedced6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}