Skip to content

Commit

Permalink
usb: disable usb-detect
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Sep 7, 2023
1 parent 867e797 commit c79209c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/driver/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ void usb_init() {
}

uint8_t usb_detect() {
/* appears this not reliable on a good portion of boards
if (target.usb_detect) {
if (!gpio_pin_read(target.usb_detect)) {
return 0;
}
}
*/

return usb_device_configured;
}
Expand Down

0 comments on commit c79209c

Please sign in to comment.