remove led_layer_set crap
authorEvan Sailer <esailer@asu.edu>
Wed, 4 Jan 2017 06:34:50 +0000 (23:34 -0700)
committerEvan Sailer <esailer@asu.edu>
Wed, 4 Jan 2017 06:34:50 +0000 (23:34 -0700)
keyboard/provan/led.c
keyboard/roadkit/led.c
keyboard/transitvan/led.c
tmk_core/common/action_layer.c
tmk_core/common/led.h

index 20c3d2f964e25e64ee1024410653c6f92b544d31..1e56bf9fc165985e830713f678c525ae913bf1f1 100644 (file)
@@ -32,14 +32,3 @@ void led_set(uint8_t usb_led)
         PORTB &= ~(1<<7);
     }
 }
-
-void led_layer_set(uint32_t state) {
-    DDRB |= (1<<7);
-
-    /* Led for Layer 2 */
-    if ((1<<4  & state) != 0) {
-        PORTB |= (1<<7);
-    } else {
-        PORTB &= ~(1<<7);
-    }
-}
index 2c0d94dc1c17309cc890e164870c45cf147a4719..62abcd79da979962d48f928feb5624098ef716db 100644 (file)
@@ -32,14 +32,3 @@ void led_set(uint8_t usb_led)
         PORTB &= ~(1<<2);
     }
 }
-
-void led_layer_set(uint32_t state) {
-    DDRB |= (1<<5);
-
-    /* Led for Layer 2 */
-    if ((1<<2  & state) != 0) {
-        PORTB |= (1<<5);
-    } else {
-        PORTB &= ~(1<<5);
-    }
-}
index 91f20030ee73a678d181541590c6597c458c00fc..62abcd79da979962d48f928feb5624098ef716db 100644 (file)
@@ -32,14 +32,3 @@ void led_set(uint8_t usb_led)
         PORTB &= ~(1<<2);
     }
 }
-
-void led_layer_set(uint32_t state) {
-    DDRB |= (1<<2);
-
-    /* Led for Layer 2 */
-    if ((1<<4  & state) != 0) {
-        PORTB |= (1<<2);
-    } else {
-        PORTB &= ~(1<<2);
-    }
-}
index 8127b42f3c67f8e1528114bf37632582061c3257..aa4087b9b214b96273f57fda882de2104b1a2eb0 100644 (file)
@@ -65,7 +65,6 @@ static void layer_state_set(uint32_t state)
     dprint("layer_state: ");
     layer_debug(); dprint(" to ");
     layer_state = state;
-    led_layer_set(state);
     hook_layer_change(layer_state);
     layer_debug(); dprintln();
     clear_keyboard_but_mods(); // To avoid stuck keys
index e526ce5c2b73559389b62a805927798bad2394c8..d5fc051bf52ed573382f8edd8ed2085ceb887204 100644 (file)
@@ -33,7 +33,6 @@ extern "C" {
 #endif
 
 void led_set(uint8_t usb_led);
-void led_layer_set(uint32_t state);
 
 #ifdef __cplusplus
 }
Imprint / Impressum