Update Helix 'led_test' keymap
Change to use keyboard_post_init_user() hook (#3113)
This commit is contained in:
parent
5cb713148d
commit
2cd2078b9d
2 changed files with 1 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue