aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-01-20 18:48:28 +0000
committerQMK Bot <hello@qmk.fm>2020-01-20 18:48:28 +0000
commite3d59a72f9c5a462066439bb5396484bd39ab739 (patch)
treed43d2b3f1383b6d2cc029914fa0d70db625a456b
parent484a9b12bc3961fc0dd9481d3cb734959db42191 (diff)
downloadqmk_firmware-e3d59a72f9c5a462066439bb5396484bd39ab739.tar.gz
qmk_firmware-e3d59a72f9c5a462066439bb5396484bd39ab739.zip
format code according to conventions [skip ci]
-rw-r--r--quantum/rgblight.c6
-rw-r--r--quantum/rgblight.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 85b319110..40de19eac 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -160,9 +160,7 @@ void eeconfig_update_rgblight(uint32_t val) {
160#endif 160#endif
161} 161}
162 162
163void eeconfig_update_rgblight_current(void) { 163void eeconfig_update_rgblight_current(void) { eeconfig_update_rgblight(rgblight_config.raw); }
164 eeconfig_update_rgblight(rgblight_config.raw);
165}
166 164
167void eeconfig_update_rgblight_default(void) { 165void eeconfig_update_rgblight_default(void) {
168 rgblight_config.enable = 1; 166 rgblight_config.enable = 1;
@@ -510,7 +508,7 @@ uint8_t rgblight_get_speed(void) { return rgblight_config.speed; }
510void rgblight_set_speed_eeprom_helper(uint8_t speed, bool write_to_eeprom) { 508void rgblight_set_speed_eeprom_helper(uint8_t speed, bool write_to_eeprom) {
511 rgblight_config.speed = speed; 509 rgblight_config.speed = speed;
512 if (write_to_eeprom) { 510 if (write_to_eeprom) {
513 eeconfig_update_rgblight(rgblight_config.raw); // EECONFIG needs to be increased to support this 511 eeconfig_update_rgblight(rgblight_config.raw); // EECONFIG needs to be increased to support this
514 dprintf("rgblight set speed [EEPROM]: %u\n", rgblight_config.speed); 512 dprintf("rgblight set speed [EEPROM]: %u\n", rgblight_config.speed);
515 } else { 513 } else {
516 dprintf("rgblight set speed [NOEEPROM]: %u\n", rgblight_config.speed); 514 dprintf("rgblight set speed [NOEEPROM]: %u\n", rgblight_config.speed);
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index f6746e50f..c0fc0f3c6 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -235,8 +235,8 @@ void rgblight_sethsv_noeeprom(uint8_t hue, uint8_t sat, uint8_t val);
235 235
236/* effect speed */ 236/* effect speed */
237uint8_t rgblight_get_speed(void); 237uint8_t rgblight_get_speed(void);
238void rgblight_set_speed(uint8_t speed); 238void rgblight_set_speed(uint8_t speed);
239void rgblight_set_speed_noeeprom(uint8_t speed); 239void rgblight_set_speed_noeeprom(uint8_t speed);
240 240
241/* query */ 241/* query */
242uint8_t rgblight_get_mode(void); 242uint8_t rgblight_get_mode(void);