summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/usb/hid-logitech-dj.c1
-rw-r--r--hw/usb/hid-logitech-hidpp20.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/hw/usb/hid-logitech-dj.c b/hw/usb/hid-logitech-dj.c
index bc293a2dc5..d10e58d1bb 100644
--- a/hw/usb/hid-logitech-dj.c
+++ b/hw/usb/hid-logitech-dj.c
@@ -588,6 +588,7 @@ static void hidpp_init_device(USBLtunifyState *s, int device_index, int devtype)
hd->report_interval = 20;
break;
case DEVTYPE_MOUSE:
+ hd->info.version = (struct firmware_version) { 0x27, 0x02, 0x28, 0, 0 };
hd->hid = &s->hid[IFACE_MSE];
hd->info.report_types = 4; /* HID Collection: Mouse */
hd->info.wireless_pid = 0x4013;
diff --git a/hw/usb/hid-logitech-hidpp20.c b/hw/usb/hid-logitech-hidpp20.c
index 001eea0479..915a028b47 100644
--- a/hw/usb/hid-logitech-hidpp20.c
+++ b/hw/usb/hid-logitech-hidpp20.c
@@ -121,22 +121,22 @@ static HIDPP20_FEATURE(feat_devicefwversion)
params[4] = hd->info.version.fw_major;
params[5] = hd->info.version.fw_minor;
/* 6:7 FW build number */
- params[5] = hd->info.version.fw_build >> 8;
- params[6] = (uint8_t) hd->info.version.fw_build;
+ params[6] = hd->info.version.fw_build >> 8;
+ params[7] = (uint8_t) hd->info.version.fw_build;
return 11;
case 1: /* FwType: Bootloader */
memcpy(params + 1, "BL ", 3); /* 1:3 FwPrefix */
/* 4:5 BCD version number */
params[4] = hd->info.version.bl_major;
params[5] = hd->info.version.bl_minor;
- params[5] = params[6] = 0; /* 6:7 FW build number */
+ params[6] = params[7] = 0; /* 6:7 FW build number */
return 11;
case 2: /* FwType: Hardware */
memcpy(params + 1, "SYN", 3); /* 1:3 FwPrefix */
/* 4:5 BCD version number */
params[4] = 5;
params[5] = 0;
- params[5] = params[6] = 0; /* 6:7 FW build number */
+ params[6] = params[7] = 0; /* 6:7 FW build number */
return 11;
default:
return -HIDPP20_ERR_CODE_OUTOFRANGE;