diff options
author | Jack Humbert <jack.humb@gmail.com> | 2014-12-11 17:36:42 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2014-12-11 17:36:42 -0500 |
commit | d9a1b9086f23477ffdcce3c1ff49ec1ce7c8791f (patch) | |
tree | 47fb4e6f2311dd5193af921c379629dac98c09a2 /keyboard/gh60/led.c | |
parent | 1c6770f18cd5d7794c9ad198ada8062de8679e7c (diff) |
led
Diffstat (limited to 'keyboard/gh60/led.c')
-rw-r--r-- | keyboard/gh60/led.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/keyboard/gh60/led.c b/keyboard/gh60/led.c index 62abcd79da..7c98510801 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); } } |