mkii: Fix mkii_get_hwrev

This commit is contained in:
Pali Rohár committed 2014-11-26 14:25:41 +01:00
1 parent 2c15535099
commit 8b5c945078
1 file changed
+1 -1
+1 -1
View File
@@ -423,7 +423,7 @@ int16_t mkii_get_hwrev(struct usb_device_info * dev) {
msg = (struct mkii_message *)buf; msg = (struct mkii_message *)buf;
memcpy(msg->data, "/device/hw_build", sizeof("/device/hw_build")-1); memcpy(msg->data, "/device/hw_build", sizeof("/device/hw_build")-1);
ret = mkii_send_receive(dev->udev, MKII_GET_DEVICE, msg, sizeof("/device/hw_build")-1, msg, sizeof(buf)); ret = mkii_send_receive(dev->udev, MKII_GET_HWREV, msg, sizeof("/device/hw_build")-1, msg, sizeof(buf));
if ( ret < 2 || msg->data[0] != 0 || msg->data[1] == 0 ) if ( ret < 2 || msg->data[0] != 0 || msg->data[1] == 0 )
return -1; return -1;