Skip to content

Commit

Permalink
ARMmbed#64 Assume "PC connected" at the start of USB communication in…
Browse files Browse the repository at this point in the history
…stead of waiting for the whole enumeration process to be finished.
  • Loading branch information
gerargz authored and gaborcsapo committed Jun 29, 2022
1 parent 218b6ae commit 68a752f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions source/board/microbitv2/microbitv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,6 @@ void board_30ms_hook()
static uint8_t blink_in_progress = 0;

if (usb_state == USB_CONNECTED) {
/* Set usb_pc_connected to true to prevent entering sleep mode when host does re-enumeration.
* Will be set to false when the USB cable is detached. */
usb_pc_connected = true;
// configure pin as GPIO
gpio_enable_hid_led();
power_led_max_duty_cycle = PWR_LED_ON_MAX_BRIGHTNESS;
Expand Down

0 comments on commit 68a752f

Please sign in to comment.