forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to use keyboard_post_init_user() hook (qmk#3113)
- Loading branch information
Showing
2 changed files
with
1 addition
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |