From: Stephen H. W. <sw...@us...> - 2005-03-31 17:13:05
|
Update of /cvsroot/gphoto/libgphoto2/camlibs/canon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10754 Modified Files: usb.c Log Message: Command parameter for "get image" in the new protocol is the same as in the old one. Index: usb.c =================================================================== RCS file: /cvsroot/gphoto/libgphoto2/camlibs/canon/usb.c,v retrieving revision 1.102 retrieving revision 1.103 diff -u -d -r1.102 -r1.103 --- usb.c 28 Mar 2005 18:35:50 -0000 1.102 +++ usb.c 31 Mar 2005 17:12:20 -0000 1.103 @@ -1438,7 +1438,7 @@ "Supplied file name '%s' does not fit in payload buffer.", name); return GP_ERROR_BAD_PARAMETERS; } - htole32a (payload, 0x1); /* get picture */ + htole32a (payload, 0x0); /* get picture */ strncpy ( payload+offset, name, sizeof(payload)-offset-1 ); payload[offset + strlen (payload+offset)] = 0; payload_length = offset + strlen (payload+offset) + 2; |