feat(harmony): add screen viewing and control with USB reconnection recovery

This commit is contained in:
2026-09-10 14:15:43 +08:00
parent 44d8cf5c92
commit 170ea4d112
26 changed files with 2085 additions and 26 deletions
+12
View File
@@ -0,0 +1,12 @@
--- a/src/libusb1-glue.c
+++ b/src/libusb1-glue.c
@@ -2358,6 +2358,9 @@
void close_device (PTP_USB *ptp_usb, PTPParams *params)
{
+ /* Closing is a small command, not a file transfer. A non-responsive
+ * CloseSession must not consume the device's long transfer timeout. */
+ set_usb_device_timeout(ptp_usb, 2000);
if (ptp_closesession(params)!=PTP_RC_OK)
LIBMTP_ERROR("ERROR: Could not close session!\n");
close_usb(ptp_usb);