aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorskullY <skullydazed@gmail.com>2016-04-10 21:16:49 -0700
committerskullY <skullydazed@gmail.com>2016-04-10 21:16:49 -0700
commit97f8f378761506914b69d4fd2d5661bfcae28295 (patch)
treec3aeb4468cb682dd1a48ccc296173cf9d4d576b2 /quantum
parentdc451b505bf6c21f3a423a299b112704b3b0092b (diff)
downloadqmk_firmware-97f8f378761506914b69d4fd2d5661bfcae28295.tar.gz
qmk_firmware-97f8f378761506914b69d4fd2d5661bfcae28295.zip
Fixup RGBLIGHT support for clueboard2
Diffstat (limited to 'quantum')
-rw-r--r--quantum/rgblight.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 2215cf5cd..6adc9e278 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -190,7 +190,7 @@ void rgblight_mode(uint8_t mode) {
190 rgblight_config.mode = mode; 190 rgblight_config.mode = mode;
191 } 191 }
192 eeconfig_write_rgblight(rgblight_config.raw); 192 eeconfig_write_rgblight(rgblight_config.raw);
193 dprintf("rgblight mode: %u\n", rgblight_config.mode); 193 xprintf("rgblight mode: %u\n", rgblight_config.mode);
194 if (rgblight_config.mode == 1) { 194 if (rgblight_config.mode == 1) {
195 rgblight_timer_disable(); 195 rgblight_timer_disable();
196 } else if (rgblight_config.mode >=2 && rgblight_config.mode <=23) { 196 } else if (rgblight_config.mode >=2 && rgblight_config.mode <=23) {
@@ -207,7 +207,7 @@ void rgblight_mode(uint8_t mode) {
207void rgblight_toggle(void) { 207void rgblight_toggle(void) {
208 rgblight_config.enable ^= 1; 208 rgblight_config.enable ^= 1;
209 eeconfig_write_rgblight(rgblight_config.raw); 209 eeconfig_write_rgblight(rgblight_config.raw);
210 dprintf("rgblight toggle: rgblight_config.enable = %u\n", rgblight_config.enable); 210 xprintf("rgblight toggle: rgblight_config.enable = %u\n", rgblight_config.enable);
211 if (rgblight_config.enable) { 211 if (rgblight_config.enable) {
212 rgblight_mode(rgblight_config.mode); 212 rgblight_mode(rgblight_config.mode);
213 } else { 213 } else {
@@ -300,7 +300,7 @@ void rgblight_sethsv(uint16_t hue, uint8_t sat, uint8_t val){
300 rgblight_config.sat = sat; 300 rgblight_config.sat = sat;
301 rgblight_config.val = val; 301 rgblight_config.val = val;
302 eeconfig_write_rgblight(rgblight_config.raw); 302 eeconfig_write_rgblight(rgblight_config.raw);
303 dprintf("rgblight set hsv [EEPROM]: %u,%u,%u\n", rgblight_config.hue, rgblight_config.sat, rgblight_config.val); 303 xprintf("rgblight set hsv [EEPROM]: %u,%u,%u\n", rgblight_config.hue, rgblight_config.sat, rgblight_config.val);
304 } 304 }
305} 305}
306 306