From 77036aabf6cd317bda418466e05e36016bd6a634 Mon Sep 17 00:00:00 2001 From: Daniel C Date: Mon, 14 Aug 2023 19:15:32 -0400 Subject: [PATCH] get_thumb: only 1 param is allowed --- src/operations.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/operations.c b/src/operations.c index cc4941b..bbfca73 100644 --- a/src/operations.c +++ b/src/operations.c @@ -234,9 +234,8 @@ int ptp_get_prop_desc(struct PtpRuntime *r, int code, struct PtpDevPropDesc *pd) int ptp_get_thumbnail(struct PtpRuntime *r, int handle) { struct PtpCommand cmd; cmd.code = PTP_OC_GetThumb; - cmd.param_length = 2; - cmd.params[0] = handle; // -1 to delete all image - cmd.params[1] = 0; // Object format code + cmd.param_length = 1; + cmd.params[0] = handle; return ptp_generic_send(r, &cmd); }