[DS4] Proper USB/BT detection

This commit is contained in:
Ivan Chikish 2023-08-28 21:53:02 +03:00 committed by Megamouse
parent 3d2229ca05
commit 4acd819478
2 changed files with 11 additions and 30 deletions

View file

@ -195,6 +195,7 @@ void dualsense_pad_handler::check_add_device(hid_device* hidDevice, std::string_
if (res < 0 || buf[0] != 0x09)
{
dualsense_log.error("check_add_device: hid_get_feature_report 0x09 failed! result=%d, buf[0]=0x%x, error=%s", res, buf[0], hid_error(hidDevice));
hid_close(hidDevice);
return;
}