forked from drath/libratbag
sinowealth: fix all devices being detected as generic device
This commit is contained in:
committed by
Peter Hutterer
parent
f87bccb370
commit
1140875cd8
@@ -1497,7 +1497,7 @@ sinowealth_find_device_data(struct input_id ids, const char *fw_version)
|
||||
if (device_data->vid != ids.vendor || device_data->pid != ids.product)
|
||||
continue;
|
||||
|
||||
if (strneq(fw_version, device_data->fw_version, sizeof(device_data->fw_version)))
|
||||
if (!strneq(fw_version, device_data->fw_version, sizeof(device_data->fw_version)))
|
||||
continue;
|
||||
|
||||
return device_data;
|
||||
|
||||
Reference in New Issue
Block a user