From 7b2c347c0930552f7b679a59979318eb7835cf42 Mon Sep 17 00:00:00 2001 From: Evan Sailer Date: Tue, 3 Jan 2017 23:34:50 -0700 Subject: [PATCH] remove led_layer_set crap --- keyboard/provan/led.c | 11 ----------- keyboard/roadkit/led.c | 11 ----------- keyboard/transitvan/led.c | 11 ----------- tmk_core/common/action_layer.c | 1 - tmk_core/common/led.h | 1 - 5 files changed, 35 deletions(-) diff --git a/keyboard/provan/led.c b/keyboard/provan/led.c index 20c3d2f9..1e56bf9f 100644 --- a/keyboard/provan/led.c +++ b/keyboard/provan/led.c @@ -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); - } -} diff --git a/keyboard/roadkit/led.c b/keyboard/roadkit/led.c index 2c0d94dc..62abcd79 100644 --- a/keyboard/roadkit/led.c +++ b/keyboard/roadkit/led.c @@ -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); - } -} diff --git a/keyboard/transitvan/led.c b/keyboard/transitvan/led.c index 91f20030..62abcd79 100644 --- a/keyboard/transitvan/led.c +++ b/keyboard/transitvan/led.c @@ -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); - } -} diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index 8127b42f..aa4087b9 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c @@ -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 diff --git a/tmk_core/common/led.h b/tmk_core/common/led.h index e526ce5c..d5fc051b 100644 --- a/tmk_core/common/led.h +++ b/tmk_core/common/led.h @@ -33,7 +33,6 @@ extern "C" { #endif void led_set(uint8_t usb_led); -void led_layer_set(uint32_t state); #ifdef __cplusplus } -- 2.39.3