summaryrefslogtreecommitdiffstats
path: root/keyboard/gh60/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/gh60/led.c')
-rw-r--r--keyboard/gh60/led.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/keyboard/gh60/led.c b/keyboard/gh60/led.c
index 62abcd79d..7c9851080 100644
--- a/keyboard/gh60/led.c
+++ b/keyboard/gh60/led.c
@@ -22,13 +22,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void led_set(uint8_t usb_led)
{
- if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
- // output low
- DDRB |= (1<<2);
- PORTB &= ~(1<<2);
+ if (usb_led & (1<<USB_LED_FUNCTION)) {
+ // Output high.
+ DDRF |= (1<<0);
+ PORTF |= (1<<0);
} else {
- // Hi-Z
- DDRB &= ~(1<<2);
- PORTB &= ~(1<<2);
+ // Output low.
+ DDRF &= ~(1<<0);
+ PORTF &= ~(1<<0);
}
}