From 6dbfe8c3562b8ccf630ed0e3099b47c8d2730d14 Mon Sep 17 00:00:00 2001 From: "akw@oneirism.org" Date: Thu, 30 Jun 2022 01:58:01 +0000 Subject: [PATCH] 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. --- sys/src/cmd/nusb/ptp/ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/nusb/ptp/ptp.c b/sys/src/cmd/nusb/ptp/ptp.c index 2b9ef459f..6581b28cc 100644 --- a/sys/src/cmd/nusb/ptp/ptp.c +++ b/sys/src/cmd/nusb/ptp/ptp.c @@ -45,7 +45,7 @@ struct Ptprpc uchar type[2]; uchar code[2]; uchar transid[4]; - uchar d[500]; + uchar d[1012]; }; struct Node