Skip to content

Commit

Permalink
Remove redundant pin configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmann committed Oct 3, 2023
1 parent 6ec494d commit 7c7fdbe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions firmware/src/boards/cynthion_d11/usb_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ void take_over_usb(void)
*/
void switch_control_task(void)
{
#if ((_BOARD_REVISION_MAJOR_ == 0) && (_BOARD_REVISION_MINOR_ < 6))
gpio_set_pin_pull_mode(PROGRAM_BUTTON, GPIO_PULL_UP);
#else
gpio_set_pin_pull_mode(PROGRAM_BUTTON, GPIO_PULL_OFF);
#endif
gpio_set_pin_direction(PROGRAM_BUTTON, GPIO_DIRECTION_IN);
if (gpio_get_pin_level(PROGRAM_BUTTON) == false) {
take_over_usb();
}
Expand Down

0 comments on commit 7c7fdbe

Please sign in to comment.