mkii: Fix mkii_reboot_device
This commit is contained in:
1 parent
8b5c945078
commit
c87687128f
1 file changed
+2
-2
+2
-2
@@ -335,8 +335,8 @@ int mkii_reboot_device(struct usb_device_info * dev) {
|
|||||||
|
|
||||||
printf("Rebooting device...\n");
|
printf("Rebooting device...\n");
|
||||||
|
|
||||||
memcpy(msg->data, "reboot", sizeof("reboot")-1);
|
memcpy(msg->data, "reboot", sizeof("reboot"));
|
||||||
ret = mkii_send_receive(dev->udev, MKII_GET_DEVICE, msg, sizeof("reboot")-1, msg, sizeof(buf));
|
ret = mkii_send_receive(dev->udev, MKII_REBOOT, msg, sizeof("reboot"), msg, sizeof(buf));
|
||||||
if ( ret != 1 || msg->data[0] != 0 )
|
if ( ret != 1 || msg->data[0] != 0 )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user