From 148ee91b1f7de0ddd4f19e568f6f9ffd74deb1ef Mon Sep 17 00:00:00 2001 From: czchc Date: Thu, 28 Feb 2019 14:52:46 +0800 Subject: [PATCH] set usbDetectPin to input pull down --- src/main/drivers/usb_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/usb_io.c b/src/main/drivers/usb_io.c index f08f835300..7a4bd3327c 100644 --- a/src/main/drivers/usb_io.c +++ b/src/main/drivers/usb_io.c @@ -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 }