aboutsummaryrefslogtreecommitdiff
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/>.
22 22
23void led_set(uint8_t usb_led) 23void led_set(uint8_t usb_led)
24{ 24{
25 if (usb_led & (1<<USB_LED_CAPS_LOCK)) { 25 if (usb_led & (1<<USB_LED_FUNCTION)) {
26 // output low 26 // Output high.
27 DDRB |= (1<<2); 27 DDRF |= (1<<0);
28 PORTB &= ~(1<<2); 28 PORTF |= (1<<0);
29 } else { 29 } else {
30 // Hi-Z 30 // Output low.
31 DDRB &= ~(1<<2); 31 DDRF &= ~(1<<0);
32 PORTB &= ~(1<<2); 32 PORTF &= ~(1<<0);
33 } 33 }
34} 34}