Update LED/RGB Matrix flag function behavior (#17651)
This commit is contained in:
parent
34fec2c07d
commit
1dfe2bb49a
4 changed files with 25 additions and 3 deletions
|
@ -618,10 +618,20 @@ void led_matrix_decrease_speed(void) {
|
|||
led_matrix_decrease_speed_helper(true);
|
||||
}
|
||||
|
||||
void led_matrix_set_flags_eeprom_helper(led_flags_t flags, bool write_to_eeprom) {
|
||||
led_matrix_config.flags = flags;
|
||||
eeconfig_flag_led_matrix(write_to_eeprom);
|
||||
dprintf("led matrix set speed [%s]: %u\n", (write_to_eeprom) ? "EEPROM" : "NOEEPROM", led_matrix_config.flags);
|
||||
}
|
||||
|
||||
led_flags_t led_matrix_get_flags(void) {
|
||||
return led_matrix_eeconfig.flags;
|
||||
return led_matrix_config.flags;
|
||||
}
|
||||
|
||||
void led_matrix_set_flags(led_flags_t flags) {
|
||||
led_matrix_eeconfig.flags = flags;
|
||||
led_matrix_set_flags_eeprom_helper(flags, true);
|
||||
}
|
||||
|
||||
void led_matrix_set_flags_noeeprom(led_flags_t flags) {
|
||||
led_matrix_set_flags_eeprom_helper(flags, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue