Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define USB_INTERFACE 3
#define USB_ENDPOINT_VIDEO_IN 0x84
#define USB_ENDPOINT_CONTROL_OUT 0x03
#define USB_BUFFER_SIZE_BYTES 1024
#define USB_BUFFER_SIZE_BYTES 131072

int main(int _argc, char** argv)
{
Expand Down Expand Up @@ -61,9 +61,9 @@ int main(int _argc, char** argv)
}

// Send magic
unsigned char MAGIC[] = { 0x52, 0x4d, 0x56, 0x54 };
unsigned char MAGIC[] = { 'R', 'M', 'V', 'T' };
int MAGIC_LENGTH = 4;
unsigned int MAGIC_TIMEOUT_MS = 500;
unsigned int MAGIC_TIMEOUT_MS = 200;
r = libusb_bulk_transfer(dev, USB_ENDPOINT_CONTROL_OUT, MAGIC, MAGIC_LENGTH, NULL, MAGIC_TIMEOUT_MS);
if (r != 0 && r != LIBUSB_ERROR_TIMEOUT) {
fprintf(stderr, "unable to send magic: %s\n", libusb_strerror(r));
Expand Down