From 2ba162af9109f79465673e68bdf83ed9550153ed Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 19 Oct 2024 12:11:39 +0200 Subject: [PATCH] fixed another not always accepted syntax --- camlibs/ptp2/library.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 362b81800..1240b34f2 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -6978,8 +6978,9 @@ camera_wait_for_event (Camera *camera, int timeout, } case PTP_EC_Nikon_ObjectAddedInSDRAM: { PTPObjectInfo oi; + uint32_t newobject; downloadnow: - uint32_t newobject = event.Param1; + newobject = event.Param1; if (!newobject) newobject = 0xffff0001; ret = ptp_getobjectinfo (params, newobject, &oi); if (ret != PTP_RC_OK)