diff options
author | tmk <nobody@nowhere> | 2013-01-12 10:16:18 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-01-12 10:16:18 +0900 |
commit | e6836c3f6df23eb82188bacca15bb0614a0f8b45 (patch) | |
tree | a12cbcd2fc84933bae688904cbfdf742d155f3d7 | |
parent | 02b6b70e76ea3c4820d4f14bdd705230b6f824f1 (diff) |
Fix PWM control of LED in phantom.
-rw-r--r-- | keyboard/phantom/led.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboard/phantom/led.c b/keyboard/phantom/led.c index 3523cb7564..109004ba89 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/>. void led_set(uint8_t usb_led) { if (!(usb_led & (1<<USB_LED_CAPS_LOCK))) - PORTB &= ~(1<<6); + DDRB &= ~(1<<6); else - PORTB |= (1<<6); + DDRB |= (1<<6); if (!(usb_led & (1<<USB_LED_SCROLL_LOCK))) - PORTB &= ~(1<<7); + DDRB &= ~(1<<7); else - PORTB |= (1<<7); + DDRB |= (1<<7); } |