mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
reset LED dirty flag on commit
This commit is contained in:
committed by
Peter Hutterer
parent
8063385d03
commit
3459fab8ec
@@ -976,6 +976,7 @@ ratbag_device_commit(struct ratbag_device *device)
|
||||
{
|
||||
struct ratbag_profile *profile;
|
||||
struct ratbag_button *button;
|
||||
struct ratbag_led *led;
|
||||
int rc;
|
||||
|
||||
if (!device->driver->commit) {
|
||||
@@ -993,6 +994,9 @@ ratbag_device_commit(struct ratbag_device *device)
|
||||
|
||||
list_for_each(button, &profile->buttons, link)
|
||||
button->dirty = false;
|
||||
|
||||
list_for_each(led, &profile->leds, link)
|
||||
led->dirty = false;
|
||||
}
|
||||
|
||||
return RATBAG_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user