Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jan 30, 2025
1 parent d683534 commit 6cc8b5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions board/boards/red_chiplet.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ static void red_chiplet_enable_can_transceivers(bool enabled) {
static bool red_chiplet_can_transceiver_enabled(uint8_t transceiver) {
switch (transceiver) {
case 1U:
return get_gpio_input(GPIOG, 11);
return !get_gpio_input(GPIOG, 11);
case 2U:
return get_gpio_input(GPIOB, 10);
return !get_gpio_input(GPIOB, 10);
case 3U:
return get_gpio_input(GPIOD, 7);
return !get_gpio_input(GPIOD, 7);
case 4U:
return get_gpio_input(GPIOB, 11);
return !get_gpio_input(GPIOB, 11);
default:
return false;
}
Expand Down

0 comments on commit 6cc8b5f

Please sign in to comment.