- int transferred;
- res = libusb_bulk_transfer(dev, 0x81, (unsigned char*)&buffer, 512, &transferred, 0);
- if(res != 0 || transferred != sizeof(status_code)) {
- LOG("Error reading reply: %d\ttransferred: %d (expected %lu)\n", res, transferred, sizeof(status_code));
+ int transferred = 0;
+
+ res = libusb_bulk_transfer(dev, 0x81, reply.dump, 512, &transferred, 0);
+ if (res != 0 || transferred != sizeof(status_code)) {
+ LOG("Error reading reply: %d\ttransferred: %d (expected %zu)\n", res, transferred, sizeof(status_code));