increase delay before checking VBUS_DET
This commit is contained in:
1 parent
86fd87a326
commit
5ecc3d6384
1 file changed
+1
-1
+1
-1
@@ -610,7 +610,7 @@ void app_init(void) {
|
||||
// check if we are plugged into USB power.
|
||||
HAL_GPIO_VBUS_DET_in();
|
||||
HAL_GPIO_VBUS_DET_pulldown();
|
||||
delay_ms(10);
|
||||
delay_ms(100);
|
||||
if (HAL_GPIO_VBUS_DET_read()){
|
||||
/// if so, enable USB functionality.
|
||||
_watch_enable_usb();
|
||||
|
||||
Reference in new issue
Block a user