summaryrefslogtreecommitdiffstats
path: root/src/mkii.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2014-11-26 14:25:50 +0100
committerPali Rohár <pali.rohar@gmail.com>2014-11-26 14:25:50 +0100
commitc87687128fea5e309fd4651a0d42abde74e405ed (patch)
tree7b403222d56122f8ae794a1d551d9cd67a797ca5 /src/mkii.c
parent8b5c94507896e6f125d97c16fca55f8929fc734d (diff)
download0xFFFF-c87687128fea5e309fd4651a0d42abde74e405ed.tar.bz2
mkii: Fix mkii_reboot_device
Diffstat (limited to 'src/mkii.c')
-rw-r--r--src/mkii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mkii.c b/src/mkii.c
index 0f7125a..0abde6a 100644
--- a/src/mkii.c
+++ b/src/mkii.c
@@ -335,8 +335,8 @@ int mkii_reboot_device(struct usb_device_info * dev) {
printf("Rebooting device...\n");
- memcpy(msg->data, "reboot", sizeof("reboot")-1);
- ret = mkii_send_receive(dev->udev, MKII_GET_DEVICE, msg, sizeof("reboot")-1, msg, sizeof(buf));
+ memcpy(msg->data, "reboot", sizeof("reboot"));
+ ret = mkii_send_receive(dev->udev, MKII_REBOOT, msg, sizeof("reboot"), msg, sizeof(buf));
if ( ret != 1 || msg->data[0] != 0 )
return -1;