Fix missing device version information for hid10

This got broken in e2faf04 (version 0.2).
This commit is contained in:
Peter Wu
2013-08-21 00:57:05 +02:00
parent 590422bf54
commit 7e7bbbdabd

View File

@@ -905,7 +905,7 @@ void gather_device_info(int fd, u8 device_index) {
get_hidpp_version(fd, device_index, &dev->hidpp_version);
get_device_ext_pair_info(fd, device_index);
get_device_name(fd, device_index);
if (dev->hidpp_version.major == 0 && dev->hidpp_version.minor == 0) {
if (dev->hidpp_version.major == 1 && dev->hidpp_version.minor == 0) {
if (get_device_versions(fd, device_index, &dev->version)) {
dev->device_available = true;
}