From cfb01b8b3f3e05088ecd21f26f2bc277473e38ea Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 13 Dec 2015 20:13:35 +0100 Subject: [PATCH] increment capcnt even on storefull event --- libgphoto2_port/vusb/vcamera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgphoto2_port/vusb/vcamera.c b/libgphoto2_port/vusb/vcamera.c index 8371a4d22..8c97bc288 100644 --- a/libgphoto2_port/vusb/vcamera.c +++ b/libgphoto2_port/vusb/vcamera.c @@ -1057,7 +1057,7 @@ ptp_initiatecapture_write(vcamera *cam, ptpcontainer *ptp) { /* Emit ObjectAdded event for the created folder */ ptp_inject_interrupt (cam, 80, 0x4002, 1, ptp_objectid, cam->seqnr); /* objectadded */ } - if (capcnt == 150) { + if (capcnt++ == 150) { /* The start of the operation succeeds, but the memory runs full during it. */ ptp_inject_interrupt (cam, 100, 0x400A, 1, ptp_objectid, cam->seqnr); /* storefull */ ptp_response (cam, PTP_RC_OK, 0);