qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

commit 4e2369693f7f2ef654db35d158af5cddb98d9703
parent 657d05593491f7d4d1346f0f06f9972fdbde9095
Author: Konstantin Đorđević <vomindoraan@gmail.com>
Date:   Mon, 18 Feb 2019 04:05:12 +0100

Move RGBLIGHT_LIMIT_VAL definition from rgblight.c to rgblight.h (#5167)


Diffstat:
quantum/rgblight.c | 4----
quantum/rgblight.h | 3+++
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/quantum/rgblight.c b/quantum/rgblight.c @@ -31,10 +31,6 @@ #include "debug.h" #include "led_tables.h" -#ifndef RGBLIGHT_LIMIT_VAL -#define RGBLIGHT_LIMIT_VAL 255 -#endif - #define _RGBM_SINGLE_STATIC(sym) RGBLIGHT_MODE_ ## sym, #define _RGBM_SINGLE_DYNAMIC(sym) #define _RGBM_MULTI_STATIC(sym) RGBLIGHT_MODE_ ## sym, diff --git a/quantum/rgblight.h b/quantum/rgblight.h @@ -121,6 +121,9 @@ enum RGBLIGHT_EFFECT_MODE { #ifndef RGBLIGHT_VAL_STEP #define RGBLIGHT_VAL_STEP 17 #endif +#ifndef RGBLIGHT_LIMIT_VAL +#define RGBLIGHT_LIMIT_VAL 255 +#endif #define RGBLED_TIMER_TOP F_CPU/(256*64) // #define RGBLED_TIMER_TOP 0xFF10