From 518883ab76d25e2ffd8f2dcb3d3ec834d7150c5f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 11 Feb 2003 18:05:20 +0000 Subject: [PATCH] * pdc640.c: reduced read size back to 1280, so serial cameras work again. Tested against USB Only JD350v and Stylocam. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6198 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/polaroid/pdc640.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camlibs/polaroid/pdc640.c b/camlibs/polaroid/pdc640.c index 6b3c5bbb9..7e01202a0 100644 --- a/camlibs/polaroid/pdc640.c +++ b/camlibs/polaroid/pdc640.c @@ -385,9 +385,9 @@ pdc640_unknown20 (GPPort* port) static int pdc640_caminfo (GPPort *port, int *numpic) { - char buf[1536]; + char buf[1280]; - CHECK_RESULT (pdc640_transmit_packet (port, 0x40, buf, 1536)); + CHECK_RESULT (pdc640_transmit_packet (port, 0x40, buf, 1280)); *numpic = buf[2]; /* thats the only useful info :( */ return (GP_OK); }