summaryrefslogtreecommitdiffstats
path: root/users/xtonhasvim/fancylighting.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/xtonhasvim/fancylighting.c')
-rw-r--r--users/xtonhasvim/fancylighting.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/users/xtonhasvim/fancylighting.c b/users/xtonhasvim/fancylighting.c
index f4af5ec55..dc13df03f 100644
--- a/users/xtonhasvim/fancylighting.c
+++ b/users/xtonhasvim/fancylighting.c
@@ -34,9 +34,14 @@ void matrix_scan_keymap(void) {
#define FADE_BACK_TIME 500
#define BREATH_FIRE_TIME 1000
#define ANIMATION_STEP_INTERVAL 20
+
+#if RGBLED_NUM >= 2
#define POWER_KEY_OFFSET (RGBLED_NUM / 2)
#define SPACE_OFFSET_MAX (RGBLED_NUM / 2)
-
+#else
+#define POWER_KEY_OFFSET 1
+#define SPACE_OFFSET_MAX 1
+#endif
uint16_t effect_start_timer = 0;
uint8_t user_rgb_mode = 0;