shithub: riscv

Download patch

ref: 6dbfe8c3562b8ccf630ed0e3099b47c8d2730d14
parent: e6d31c1715cc50bd3d9a0301a41647295f739071
author: [email protected] <[email protected]>
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