DS3/DS4: fix battery LED update

This commit is contained in:
Megamouse 2021-03-05 22:09:28 +01:00
parent dbb03ae2d7
commit 3e7e077fad
2 changed files with 2 additions and 0 deletions

View File

@ -590,6 +590,7 @@ void ds3_pad_handler::apply_pad_data(const std::shared_ptr<PadDevice>& device, c
if (dev->last_battery_level != dev->battery_level)
{
dev->new_output_data = true;
dev->last_battery_level = dev->battery_level;
}
}

View File

@ -894,6 +894,7 @@ void ds4_pad_handler::apply_pad_data(const std::shared_ptr<PadDevice>& device, c
config->colorG.set(combined_color & 0xff);
config->colorB.set(0);
ds4_dev->new_output_data = true;
ds4_dev->last_battery_level = ds4_dev->battery_level;
}
}