From 2c8407ff663c44b706e8e4a480eb2fd6e98f86cc Mon Sep 17 00:00:00 2001 From: Hubert Figuiere Date: Wed, 20 Mar 2002 23:52:29 +0000 Subject: * library.c (jamcam_file_count): Patch by Thor Ablestar Fix the file count if the camera storage is full. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4299 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/jamcam/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camlibs/jamcam/library.c') diff --git a/camlibs/jamcam/library.c b/camlibs/jamcam/library.c index 6e7b659da..e36248e41 100644 --- a/camlibs/jamcam/library.c +++ b/camlibs/jamcam/library.c @@ -239,7 +239,7 @@ int jamcam_file_count (Camera *camera) { jamcam_read_packet( camera, reply, 16 ); - while( reply[0] != 0xff ) { + while( reply[0] = 'K' ) { width = (reply[5] * 256) + reply[4]; height = (reply[7] * 256) + reply[6]; -- cgit v1.2.1