~ruther/qmk_firmware

2647c7cd84820a833b85e41ea86caf76b36e6ee1 — Yang Liu 9 years ago ba9ac45
fix bugs in animation effects
2 files changed, 2 insertions(+), 2 deletions(-)

M quantum/rgblight.c
M quantum/rgblight.h
M quantum/rgblight.c => quantum/rgblight.c +1 -1
@@ 445,7 445,7 @@ void rgblight_effect_snake(uint8_t interval) {
	rgblight_set();
	if (increament == 1) {
		if (pos - 1 < 0) {
			pos = 13;
			pos = RGBLED_NUM-1;
		} else {
			pos -= 1;
		}

M quantum/rgblight.h => quantum/rgblight.h +1 -1
@@ 13,7 13,7 @@
#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 7
#endif
#ifndef RGBLIGHT_EFFECT_KNIGHT_OFFSET
#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 11
#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 9
#endif

#ifndef RGBLIGHT_EFFECT_DUALKNIGHT_LENGTH