input: fix ds4 led/rumble in pad settings

This commit is contained in:
Megamouse 2023-01-17 00:45:09 +01:00
parent 719e7a9d56
commit 35c92723c7

View file

@ -198,7 +198,7 @@ u32 ds4_pad_handler::get_battery_level(const std::string& padId)
void ds4_pad_handler::SetPadData(const std::string& padId, u8 player_id, u8 large_motor, u8 small_motor, s32 r, s32 g, s32 b, bool /*player_led*/, bool battery_led, u32 battery_led_brightness)
{
std::shared_ptr<DS4Device> device = get_hid_device(padId);
if (!device || !device->hidDevice || !device->config)
if (!device || !device->hidDevice)
return;
// Set the device's motor speeds to our requested values 0-255