Change backlight_level to backlight_xor
This commit is contained in:
parent
22273c5edf
commit
fbbcf3ce0c
@ -106,6 +106,14 @@ void backlight_step(void)
|
||||
}
|
||||
|
||||
void backlight_level(uint8_t level)
|
||||
{
|
||||
backlight_config.level = level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
eeconfig_write_backlight(backlight_config.raw);
|
||||
backlight_set(backlight_config.level);
|
||||
}
|
||||
|
||||
void backlight_xor(uint8_t level)
|
||||
{
|
||||
backlight_config.level ^= level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
|
@ -36,5 +36,6 @@ void backlight_toggle(void);
|
||||
void backlight_step(void);
|
||||
void backlight_set(uint8_t level);
|
||||
void backlight_level(uint8_t level);
|
||||
void backlight_xor(uint8_t level);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user