]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
led oops
authorJack Humbert <jack.humb@gmail.com>
Tue, 24 Feb 2015 04:44:11 +0000 (23:44 -0500)
committerJack Humbert <jack.humb@gmail.com>
Tue, 24 Feb 2015 04:44:11 +0000 (23:44 -0500)
keyboard/atomic/led.c
keyboard/atomic/matrix.c
keyboard/planck/keymap_joe.c
keyboard/planck/led.c

index 7c985108010c6e2deaeea7bedb6f02bef4bba830..2d52fbf1c3c9a8457b0f954503375594e3808425 100644 (file)
@@ -22,13 +22,4 @@ 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_FUNCTION)) {
-        // Output high.
-        DDRF |= (1<<0);
-        PORTF |= (1<<0);
-    } else {
-        // Output low.
-        DDRF &= ~(1<<0);
-        PORTF &= ~(1<<0);
-    }
 }
index 86803c9ed0b3eea4d97f535d80a427bfe57b65a3..98102cb69464e7cf3a7a2b62ee19001c1444fd77 100644 (file)
@@ -56,12 +56,6 @@ uint8_t matrix_cols(void)
     return MATRIX_COLS;
 }
 
-static
-void setup_leds(void) {
-  DDRF  |=  0x00;
-  PORTF |=  0x00;
-}
-
 
 void matrix_init(void)
 {
@@ -69,8 +63,6 @@ void matrix_init(void)
     unselect_rows();
     init_cols();
 
-    setup_leds();
-
     // initialize matrix state: all keys off
     for (uint8_t i=0; i < MATRIX_ROWS; i++) {
         matrix[i] = 0;
index 15b16530e7a63369e19a3ebbc5469e47903cab48..07122b702c6d9aedd62cac4fe974f74ccf2f3bab 100644 (file)
@@ -78,7 +78,7 @@ const uint16_t PROGMEM fn_actions[] = {
 };
 
 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
-{
+{ 
     keyevent_t event = record->event;
     switch (id) {
         case M_Q0:
index 7c985108010c6e2deaeea7bedb6f02bef4bba830..6cffd5ea7b10b93184ed97f24a07934323b22cad 100644 (file)
@@ -22,13 +22,13 @@ 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_FUNCTION)) {
-        // Output high.
-        DDRF |= (1<<0);
-        PORTF |= (1<<0);
-    } else {
-        // Output low.
-        DDRF &= ~(1<<0);
-        PORTF &= ~(1<<0);
-    }
+    // if (usb_led & (1<<USB_LED_FUNCTION)) {
+    //     // Output high.
+    //     DDRF |= (1<<0);
+    //     PORTF |= (1<<0);
+    // } else {
+    //     // Output low.
+    //     DDRF &= ~(1<<0);
+    //     PORTF &= ~(1<<0);
+    // }
 }