ref: 2c9f4c21ad0b5e66f06a3613f6e21d5fe9f0da6a
parent: 73b212e984b86f4c0dfdddb95bcc5b8ac50ef771
author: akw@oneirism.org <akw@oneirism.org>
date: Wed Jun 29 21:58:01 EDT 2022
nusb/ptp: increase payload A silly little patch, but some ptp devices (like the camera I own) use USB3 endpoints and subsequently require the data size of the payload to be 1024(-12 for metadata). This is reflected in libgphoto2's current ptp driver.
--- a/sys/src/cmd/nusb/ptp/ptp.c
+++ b/sys/src/cmd/nusb/ptp/ptp.c
@@ -45,7 +45,7 @@
uchar type[2];
uchar code[2];
uchar transid[4];
- uchar d[500];
+ uchar d[1012];
};
struct Node
--
⑨