]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix PWM control of LED in phantom.
authortmk <nobody@nowhere>
Sat, 12 Jan 2013 01:16:18 +0000 (10:16 +0900)
committertmk <nobody@nowhere>
Sat, 12 Jan 2013 01:16:18 +0000 (10:16 +0900)
keyboard/phantom/led.c

index 3523cb7564f8ae3347d0bd1cc333f7bc10717c45..109004ba89ee6389e1cc5013bc4d04a4680ed386 100644 (file)
@@ -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);
 }