summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-01-20 18:48:28 +0000
committerFlorian Didron <fdidron@users.noreply.github.com>2020-02-26 10:15:12 +0900
commit141e02df88dae50904b1e0507924e58a0b898a79 (patch)
tree46604d57a0dc3186af5ce6d983f3d120a5bd8044
parentcd526157047d870d7039cf26f034193f8c5e0cbb (diff)
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 643a9eaaf2..0c5f650830 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -162,9 +162,7 @@ void eeconfig_update_rgblight(uint32_t val) {
#endif
}
-void eeconfig_update_rgblight_current(void) {
- eeconfig_update_rgblight(rgblight_config.raw);
-}
+void eeconfig_update_rgblight_current(void) { eeconfig_update_rgblight(rgblight_config.raw); }
void eeconfig_update_rgblight_default(void) {
rgblight_config.enable = 1;
@@ -512,7 +510,7 @@ uint8_t rgblight_get_speed(void) { return rgblight_config.speed; }
void rgblight_set_speed_eeprom_helper(uint8_t speed, bool write_to_eeprom) {
rgblight_config.speed = speed;
if (write_to_eeprom) {
- eeconfig_update_rgblight(rgblight_config.raw); // EECONFIG needs to be increased to support this
+ eeconfig_update_rgblight(rgblight_config.raw); // EECONFIG needs to be increased to support this
dprintf("rgblight set speed [EEPROM]: %u\n", rgblight_config.speed);
} else {
dprintf("rgblight set speed [NOEEPROM]: %u\n", rgblight_config.speed);
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index f6746e50ff..c0fc0f3c63 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);
/* effect speed */
uint8_t rgblight_get_speed(void);
-void rgblight_set_speed(uint8_t speed);
-void rgblight_set_speed_noeeprom(uint8_t speed);
+void rgblight_set_speed(uint8_t speed);
+void rgblight_set_speed_noeeprom(uint8_t speed);
/* query */
uint8_t rgblight_get_mode(void);