Skip to content

Commit

Permalink
Update keyboards/keychron/c2/rgb/rgb.c
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitris Mantzouranis <d3xter93@gmail.com>
  • Loading branch information
JAO1988 and dexter93 authored Sep 27, 2024
1 parent a374185 commit c8ea56b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions keyboards/keychron/c2/rgb/rgb.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ bool mode_leds_show = true;
gpio_write_pin_low(LED_MAC_PIN);
gpio_write_pin_low(LED_WIN_PIN);
}
else
if (layer_state_is(WIN_BASE)) {
gpio_write_pin_high(LED_WIN_PIN) && gpio_write_pin_low(LED_MAC_PIN);
}
else
if (layer_state_is(MAC_BASE)) {
gpio_write_pin_high(LED_MAC_PIN) && gpio_write_pin_low(LED_WIN_PIN);
}
}
else {
if (layer_state_is(WIN_BASE)) {
gpio_write_pin_high(LED_WIN_PIN) && gpio_write_pin_low(LED_MAC_PIN);
}
if (layer_state_is(MAC_BASE)) {
gpio_write_pin_high(LED_MAC_PIN) && gpio_write_pin_low(LED_WIN_PIN);
}
}
}
bool dip_switch_update_kb(uint8_t index, bool active) {
if (!dip_switch_update_user(index, active)) {
return false;
Expand Down

0 comments on commit c8ea56b

Please sign in to comment.