From 2cd2078b9d84449996dc0b01c8ad8cd0b56d9372 Mon Sep 17 00:00:00 2001 From: mtei <2170248+mtei@users.noreply.github.com> Date: Mon, 18 Feb 2019 19:01:37 +0900 Subject: Update Helix 'led_test' keymap Change to use keyboard_post_init_user() hook (#3113) --- keyboards/helix/rev2/keymaps/led_test/led_test_init.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'keyboards/helix/rev2/keymaps/led_test') diff --git a/keyboards/helix/rev2/keymaps/led_test/led_test_init.c b/keyboards/helix/rev2/keymaps/led_test/led_test_init.c index 85f5d1aa7..7f8813acd 100644 --- a/keyboards/helix/rev2/keymaps/led_test/led_test_init.c +++ b/keyboards/helix/rev2/keymaps/led_test/led_test_init.c @@ -1,20 +1,6 @@ #include QMK_KEYBOARD_H -#if 1 -void led_test_init(void) { - static int scan_count = 0; - if( scan_count == 2 ) { - rgblight_enable_noeeprom(); - rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST); - } - if( scan_count < 3 ) scan_count ++; -} - -#else -// when qmk/qmk_firmware PullRequest #3113 available. -// can use this? -void startup_user(void) { +void keyboard_post_init_user(void) { rgblight_enable_noeeprom(); rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST); } -#endif -- cgit v1.2.3