diff options
author | Drashna Jaelre <drashna@live.com> | 2019-02-18 08:36:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-18 08:36:41 -0800 |
commit | 3d4aabf251a06cd78867cb71ac41af3c158b042e (patch) | |
tree | 29ea80a533ab141cd082259447a55dc874d2a236 /keyboards | |
parent | 66a86bc50cef34dc7cabc241cf3778a323d7e6f7 (diff) | |
parent | 2cd2078b9d84449996dc0b01c8ad8cd0b56d9372 (diff) | |
download | firmware-3d4aabf251a06cd78867cb71ac41af3c158b042e.tar.gz firmware-3d4aabf251a06cd78867cb71ac41af3c158b042e.tar.bz2 firmware-3d4aabf251a06cd78867cb71ac41af3c158b042e.zip |
Update Helix 'led_test' keymap (#5168)
Change to use keyboard_post_init_user() hook (#3113)
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/helix/rev2/keymaps/default/keymap.c | 7 | ||||
-rw-r--r-- | keyboards/helix/rev2/keymaps/led_test/led_test_init.c | 16 |
2 files changed, 1 insertions, 22 deletions
diff --git a/keyboards/helix/rev2/keymaps/default/keymap.c b/keyboards/helix/rev2/keymaps/default/keymap.c index 5b8c5fae5..a64eed3e7 100644 --- a/keyboards/helix/rev2/keymaps/default/keymap.c +++ b/keyboards/helix/rev2/keymaps/default/keymap.c @@ -506,14 +506,7 @@ void music_scale_user(void) //SSD1306 OLED update loop, make sure to add #define SSD1306OLED in config.h #ifdef SSD1306OLED -// hook point for 'led_test' keymap -// 'default' keymap's led_test_init() is empty function, do nothing -// 'led_test' keymap's led_test_init() force rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST); -__attribute__ ((weak)) -void led_test_init(void) {} - void matrix_scan_user(void) { - led_test_init(); iota_gfx_task(); // this is what updates the display continuously } 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 |