File tree Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
33
33
#include "led.h"
34
34
#include "command.h"
35
35
#include "backlight.h"
36
- #include "hooks.h"
37
36
38
37
#ifdef MOUSEKEY_ENABLE
39
38
#include "mousekey.h"
@@ -66,6 +65,7 @@ static void switch_default_layer(uint8_t layer);
66
65
67
66
command_state_t command_state = ONESHOT ;
68
67
68
+
69
69
bool command_proc (uint8_t code )
70
70
{
71
71
switch (command_state ) {
@@ -189,7 +189,7 @@ static bool command_common(uint8_t code)
189
189
// test breathing sleep LED
190
190
print ("Sleep LED test\n" );
191
191
sleep_led_toggle ();
192
- led_restore_hook (host_keyboard_leds ());
192
+ led_set (host_keyboard_leds ());
193
193
break ;
194
194
#endif
195
195
#ifdef BOOTMAGIC_ENABLE
Original file line number Diff line number Diff line change @@ -48,14 +48,6 @@ void led_update_hook(uint8_t led_status) {
48
48
keyboard_set_leds (led_status );
49
49
}
50
50
51
- /* Called when indicator LEDs need updating from firmware. */
52
- /* Default behaviour: calls led_set (for compatibility). */
53
- void led_restore_hook (uint8_t led_status );
54
- __attribute__((weak ))
55
- void led_restore_hook (uint8_t led_status ) {
56
- led_set (led_status );
57
- }
58
-
59
51
/* Called once, on checking the bootmagic combos. */
60
52
/* Default behaviour: do nothing. */
61
53
__attribute__((weak ))
Original file line number Diff line number Diff line change @@ -81,8 +81,4 @@ void layer_change_hook(uint8_t layer_state);
81
81
/* Default behaviour: calls led_set (for compatibility). */
82
82
void led_update_hook (uint8_t led_status );
83
83
84
- /* Called when indicator LEDs need updating from firmware. */
85
- /* Default behaviour: calls led_set (for compatibility). */
86
- void led_restore_hook (uint8_t led_status );
87
-
88
84
#endif /* _HOOKS_H_ */
You can’t perform that action at this time.
0 commit comments