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);