2002-02-18 Lutz M�ller <lutz@users.sourceforge.net>
Reported by Patrick Mansfield <patman@aracnet.com>: * library.c (sierra_read_packet): At least Nikon CoolPix 880 sets the checksum always to 0xffff (?!?). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4178 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2002-02-18 Lutz Müller <lutz@users.sourceforge.net>
|
||||
|
||||
Reported by Patrick Mansfield <patman@aracnet.com>:
|
||||
|
||||
* library.c (sierra_read_packet): At least Nikon CoolPix 880 sets
|
||||
the checksum always to 0xffff (?!?).
|
||||
|
||||
2002-02-11 Lutz Müller <lutz@users.sourceforge.net>
|
||||
|
||||
* Makefile.am: As long as there is EXIF code in here, add
|
||||
|
||||
@@ -566,6 +566,16 @@ sierra_read_packet (Camera *camera, unsigned char *packet, GPContext *context)
|
||||
c &= 0xffff;
|
||||
if (c == (packet[br - 2] + (packet[br - 1] * 256)))
|
||||
break;
|
||||
|
||||
/*
|
||||
* At least the Nikon CoolPix 880 sets the checksum
|
||||
* always to 0xffff. In that case, we can't check it
|
||||
* and return successfully.
|
||||
*/
|
||||
if ((packet[br - 2] == 0xff) &&
|
||||
(packet[br - 1] == 0xff))
|
||||
break;
|
||||
|
||||
GP_DEBUG ("Checksum wrong (calculated 0x%x, "
|
||||
"found 0x%x)!", c,
|
||||
packet[br - 2] + (packet[br - 1] * 256));
|
||||
|
||||
Reference in New Issue
Block a user