diff --git a/firmware/src/boards/cynthion_d11/usb_switch.c b/firmware/src/boards/cynthion_d11/usb_switch.c index f0320a4..d0639d6 100644 --- a/firmware/src/boards/cynthion_d11/usb_switch.c +++ b/firmware/src/boards/cynthion_d11/usb_switch.c @@ -9,7 +9,6 @@ #include "usb_switch.h" #include "apollo_board.h" -#include "led.h" #include /** @@ -17,12 +16,9 @@ */ void hand_off_usb(void) { -#if ((_BOARD_REVISION_MAJOR_ == 0) && (_BOARD_REVISION_MINOR_ < 6)) - led_on(LED_D); -#else +#if (((_BOARD_REVISION_MAJOR_ == 0) && (_BOARD_REVISION_MINOR_ >= 6)) || (_BOARD_REVISION_MAJOR_ == 1)) gpio_set_pin_level(USB_SWITCH, false); gpio_set_pin_direction(USB_SWITCH, GPIO_DIRECTION_OUT); - led_off(LED_D); #endif } @@ -35,7 +31,6 @@ void take_over_usb(void) gpio_set_pin_level(USB_SWITCH, true); gpio_set_pin_direction(USB_SWITCH, GPIO_DIRECTION_OUT); #endif - led_on(LED_D); } /** diff --git a/firmware/src/boards/cynthion_d21/usb_switch.c b/firmware/src/boards/cynthion_d21/usb_switch.c index 3fc31aa..21646b3 100644 --- a/firmware/src/boards/cynthion_d21/usb_switch.c +++ b/firmware/src/boards/cynthion_d21/usb_switch.c @@ -7,7 +7,6 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include "led.h" #include "usb_switch.h" /** @@ -15,7 +14,6 @@ */ void hand_off_usb(void) { - led_on(LED_D); } /** @@ -23,7 +21,6 @@ void hand_off_usb(void) */ void take_over_usb(void) { - led_on(LED_D); } /**