format code according to conventions [skip ci]
This commit is contained in:
parent
484a9b12bc
commit
e3d59a72f9
2 changed files with 4 additions and 6 deletions
|
@ -160,9 +160,7 @@ void eeconfig_update_rgblight(uint32_t val) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void eeconfig_update_rgblight_current(void) {
|
void eeconfig_update_rgblight_current(void) { eeconfig_update_rgblight(rgblight_config.raw); }
|
||||||
eeconfig_update_rgblight(rgblight_config.raw);
|
|
||||||
}
|
|
||||||
|
|
||||||
void eeconfig_update_rgblight_default(void) {
|
void eeconfig_update_rgblight_default(void) {
|
||||||
rgblight_config.enable = 1;
|
rgblight_config.enable = 1;
|
||||||
|
@ -510,7 +508,7 @@ uint8_t rgblight_get_speed(void) { return rgblight_config.speed; }
|
||||||
void rgblight_set_speed_eeprom_helper(uint8_t speed, bool write_to_eeprom) {
|
void rgblight_set_speed_eeprom_helper(uint8_t speed, bool write_to_eeprom) {
|
||||||
rgblight_config.speed = speed;
|
rgblight_config.speed = speed;
|
||||||
if (write_to_eeprom) {
|
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);
|
dprintf("rgblight set speed [EEPROM]: %u\n", rgblight_config.speed);
|
||||||
} else {
|
} else {
|
||||||
dprintf("rgblight set speed [NOEEPROM]: %u\n", rgblight_config.speed);
|
dprintf("rgblight set speed [NOEEPROM]: %u\n", rgblight_config.speed);
|
||||||
|
|
|
@ -235,8 +235,8 @@ void rgblight_sethsv_noeeprom(uint8_t hue, uint8_t sat, uint8_t val);
|
||||||
|
|
||||||
/* effect speed */
|
/* effect speed */
|
||||||
uint8_t rgblight_get_speed(void);
|
uint8_t rgblight_get_speed(void);
|
||||||
void rgblight_set_speed(uint8_t speed);
|
void rgblight_set_speed(uint8_t speed);
|
||||||
void rgblight_set_speed_noeeprom(uint8_t speed);
|
void rgblight_set_speed_noeeprom(uint8_t speed);
|
||||||
|
|
||||||
/* query */
|
/* query */
|
||||||
uint8_t rgblight_get_mode(void);
|
uint8_t rgblight_get_mode(void);
|
||||||
|
|
Loading…
Reference in a new issue