diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2015-12-13 20:13:35 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2015-12-13 20:13:35 +0100 |
commit | cfb01b8b3f3e05088ecd21f26f2bc277473e38ea (patch) | |
tree | a8b6815947685c9b911dc97e41d0f14a31e1a907 /libgphoto2_port/vusb | |
parent | f8b714f67698c687d310dfcf12d5cec31ecbc0b9 (diff) | |
download | libgphoto2-cfb01b8b3f3e05088ecd21f26f2bc277473e38ea.tar.gz |
increment capcnt even on storefull event
Diffstat (limited to 'libgphoto2_port/vusb')
-rw-r--r-- | libgphoto2_port/vusb/vcamera.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |