]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix permanently on capslock led on Atom47 (#4452)
authorMaarten Dekkers <maartenwut@gmail.com>
Mon, 19 Nov 2018 20:15:16 +0000 (21:15 +0100)
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Mon, 19 Nov 2018 20:15:16 +0000 (12:15 -0800)
keyboards/atom47/rev2/rev2.c
keyboards/atom47/rev3/rev3.c

index 31a8561f0c5eeaacade59feca75e11ef70e88709..06fce06dad41b314bb4a5b18795c76fb6d45643a 100644 (file)
@@ -17,6 +17,9 @@ void matrix_scan_kb(void) {
 void led_init_ports(void) {
     // * Set our LED pins as output
     DDRB &= ~(1<<5);
+
+       //Set output high, so the capslock led is off
+       PORTB |= (1 << 5);
 }
 
 void led_set_kb(uint8_t usb_led) {
index 2cd04fa767bc3e940d1f888b2a0c4a6dfd843b49..c541ed559c6907355b2329e5816aa704acfdeaa3 100644 (file)
@@ -17,6 +17,9 @@ void matrix_scan_kb(void) {
 void led_init_ports(void) {
     // * Set our LED pins as output
     DDRE |= (1 << 6);
+
+       //Set output high, so the capslock led is off
+       PORTE |= (1 << 6);
 }
 
 void led_set_kb(uint8_t usb_led) {