aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboard/phantom/led.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboard/phantom/led.c b/keyboard/phantom/led.c
index 3523cb756..109004ba8 100644
--- a/keyboard/phantom/led.c
+++ b/keyboard/phantom/led.c
@@ -23,12 +23,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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_CAPS_LOCK)))
26 PORTB &= ~(1<<6); 26 DDRB &= ~(1<<6);
27 else 27 else
28 PORTB |= (1<<6); 28 DDRB |= (1<<6);
29 29
30 if (!(usb_led & (1<<USB_LED_SCROLL_LOCK))) 30 if (!(usb_led & (1<<USB_LED_SCROLL_LOCK)))
31 PORTB &= ~(1<<7); 31 DDRB &= ~(1<<7);
32 else 32 else
33 PORTB |= (1<<7); 33 DDRB |= (1<<7);
34} 34}