diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-24 22:23:26 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-24 22:23:26 +0100 |
commit | 1f5a4c0f0c6b7dde640dca9b949fe3e6d7ee66f2 (patch) | |
tree | 0071259e462924350037bf4d557c1a796455d5b5 /hw/usb/hid-logitech-hidpp20.c | |
parent | 9cccf4cf2206a7ab4ebb75bd9ba87ec8a9d33328 (diff) | |
download | qemu-1f5a4c0f0c6b7dde640dca9b949fe3e6d7ee66f2.tar.gz |
unifying: add fw version for M525, fix fw indices
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/hid-logitech-hidpp20.c')
-rw-r--r-- | hw/usb/hid-logitech-hidpp20.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |