* library.c (jamcam_file_count): Patch by Thor Ablestar <thor@irk.ru>

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
This commit is contained in:
Hubert Figuiere
2002-03-20 23:52:29 +00:00
parent af70d8b11e
commit 2c8407ff66
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2002-03-21 Hubert Figuiere <hfiguiere@teaser.fr>
* library.c (jamcam_file_count): Patch by Thor Ablestar <thor@irk.ru>
Fix the file count if the camera storage is full.
2002-01-04 Chris Pinkham <cpinkham@infi.net>
* jamcam.c, library.c, library.h: updated code to use new

View File

@@ -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];