Skip to content

Commit

Permalink
Allow FPGA USB by default
Browse files Browse the repository at this point in the history
fix #64
  • Loading branch information
mossmann committed May 21, 2024
1 parent 79f1a9c commit a8679b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/src/boards/cynthion_d11/fpga_adv.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ void fpga_adv_init(void)
sercom->USART.CTRLA.bit.ENABLE = 1;
while(sercom->USART.SYNCBUSY.bit.ENABLE);

// Update timestamp
last_phy_adv = board_millis();
// Set timestamp to ensure we don't erroneously detect an initial advertisement.
last_phy_adv = board_millis() - TIMEOUT;
#endif
}

Expand Down
1 change: 1 addition & 0 deletions firmware/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ int main(void)
fpga_io_init();
led_init();
debug_spi_init();
allow_fpga_takeover_usb(true);

if (button_pressed()) {
/*
Expand Down

0 comments on commit a8679b2

Please sign in to comment.