From a538f71e41ad5c594250594b053f05e550667ebc Mon Sep 17 00:00:00 2001
From: Jack Humbert <jack.humb@gmail.com>
Date: Mon, 23 Feb 2015 23:44:11 -0500
Subject: led oops

---
 keyboard/atomic/led.c        |  9 ---------
 keyboard/atomic/matrix.c     |  8 --------
 keyboard/planck/keymap_joe.c |  2 +-
 keyboard/planck/led.c        | 18 +++++++++---------
 4 files changed, 10 insertions(+), 27 deletions(-)

(limited to 'keyboard')

diff --git a/keyboard/atomic/led.c b/keyboard/atomic/led.c
index 7c98510801..2d52fbf1c3 100644
--- a/keyboard/atomic/led.c
+++ b/keyboard/atomic/led.c
@@ -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);
-    }
 }
diff --git a/keyboard/atomic/matrix.c b/keyboard/atomic/matrix.c
index 86803c9ed0..98102cb694 100644
--- a/keyboard/atomic/matrix.c
+++ b/keyboard/atomic/matrix.c
@@ -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;
diff --git a/keyboard/planck/keymap_joe.c b/keyboard/planck/keymap_joe.c
index 15b16530e7..07122b702c 100644
--- a/keyboard/planck/keymap_joe.c
+++ b/keyboard/planck/keymap_joe.c
@@ -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:
diff --git a/keyboard/planck/led.c b/keyboard/planck/led.c
index 7c98510801..6cffd5ea7b 100644
--- a/keyboard/planck/led.c
+++ b/keyboard/planck/led.c
@@ -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);
+    // }
 }
-- 
cgit v1.2.3