summaryrefslogtreecommitdiff
path: root/users/drashna/rgb
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-03-07 06:12:48 +0000
committerQMK Bot <hello@qmk.fm>2022-03-07 06:12:48 +0000
commit99edf15a696b6a116fb919ec98b2e9477ba8b124 (patch)
treed523d7e5129dd64d20869eaef7d352ced67b3145 /users/drashna/rgb
parentf9df57b722427d9a3c5d9123addf2cf88083b97b (diff)
parentff6c70415c536e6435023627197550889ffa1501 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'users/drashna/rgb')
-rw-r--r--users/drashna/rgb/rgb_stuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/drashna/rgb/rgb_stuff.c b/users/drashna/rgb/rgb_stuff.c
index 09071f7151..7d2cf0c73d 100644
--- a/users/drashna/rgb/rgb_stuff.c
+++ b/users/drashna/rgb/rgb_stuff.c
@@ -24,7 +24,6 @@ static bool is_rgblight_startup;
static HSV old_hsv;
static uint8_t old_mode;
deferred_token rgb_startup_token;
-# endif
uint32_t rgb_startup_animation(uint32_t triger_time, void *cb_arg) {
if (is_rgblight_startup && is_keyboard_master()) {
@@ -45,6 +44,7 @@ uint32_t rgb_startup_animation(uint32_t triger_time, void *cb_arg) {
}
return is_rgblight_startup ? 10 : 0;
}
+# endif
void keyboard_post_init_rgb_light(void) {
# if defined(RGBLIGHT_STARTUP_ANIMATION)
@@ -56,11 +56,11 @@ void keyboard_post_init_rgb_light(void) {
old_mode = rgblight_get_mode();
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
is_rgblight_startup = true;
+ rgb_startup_token = defer_exec(300, rgb_startup_animation, NULL);
# endif
if (userspace_config.rgb_layer_change) {
layer_state_set_rgb_light(layer_state);
}
- rgb_startup_token = defer_exec(300, rgb_startup_animation, NULL);
}