summaryrefslogtreecommitdiff
path: root/users/drashna/rgb
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-03-06 22:12:17 -0800
committerGitHub <noreply@github.com>2022-03-06 22:12:17 -0800
commitff6c70415c536e6435023627197550889ffa1501 (patch)
tree79fd0a25632f7ed2483542b8ab0731b5b2709bbd /users/drashna/rgb
parentd8971d707eddea5d16ef5fa3dad807b494aed39f (diff)
downloadqmk_firmware-ff6c70415c536e6435023627197550889ffa1501.tar.gz
qmk_firmware-ff6c70415c536e6435023627197550889ffa1501.zip
[Keymap] Drashna Mouse keys and oled updates (#16556)
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);
}