aboutsummaryrefslogtreecommitdiff
path: root/keyboard/phantom/led.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-12 10:16:18 +0900
committertmk <nobody@nowhere>2013-01-12 10:16:18 +0900
commite6836c3f6df23eb82188bacca15bb0614a0f8b45 (patch)
treea12cbcd2fc84933bae688904cbfdf742d155f3d7 /keyboard/phantom/led.c
parent02b6b70e76ea3c4820d4f14bdd705230b6f824f1 (diff)
downloadqmk_firmware-e6836c3f6df23eb82188bacca15bb0614a0f8b45.tar.gz
qmk_firmware-e6836c3f6df23eb82188bacca15bb0614a0f8b45.zip
Fix PWM control of LED in phantom.
Diffstat (limited to 'keyboard/phantom/led.c')
-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}