This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
qmk_firmware
mirror of
https://github.com/qmk/qmk_firmware/
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1.6k
Wiki
Activity
Browse Source
Fix small hiccup in snake animation (
#6858
)
pull/7050/head
theVDude
4 years ago
committed by
Joel Challis
parent
eac6ccff98
commit
5a3aefed8d
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
quantum/rgblight.c
+ 3
- 0
quantum/rgblight.c
View File
@ -910,6 +910,9 @@ void rgblight_effect_snake(animation_status_t *anim) {
ledp
-
>
b
=
0
;
for
(
j
=
0
;
j
<
RGBLIGHT_EFFECT_SNAKE_LENGTH
;
j
+
+
)
{
k
=
pos
+
j
*
increment
;
if
(
k
>
RGBLED_NUM
)
{
k
=
k
%
RGBLED_NUM
;
}
if
(
k
<
0
)
{
k
=
k
+
effect_num_leds
;
}
Write
Preview
Loading…
Cancel
Save