diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2014-11-26 14:25:50 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2014-11-26 14:25:50 +0100 |
commit | c87687128fea5e309fd4651a0d42abde74e405ed (patch) | |
tree | 7b403222d56122f8ae794a1d551d9cd67a797ca5 /src/mkii.c | |
parent | 8b5c94507896e6f125d97c16fca55f8929fc734d (diff) | |
download | 0xFFFF-c87687128fea5e309fd4651a0d42abde74e405ed.tar.bz2 |
mkii: Fix mkii_reboot_device
Diffstat (limited to 'src/mkii.c')
-rw-r--r-- | src/mkii.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |