diff --git a/camlibs/gsmart/ChangeLog b/camlibs/gsmart/ChangeLog index 54fb96c00..56f0d2041 100644 --- a/camlibs/gsmart/ChangeLog +++ b/camlibs/gsmart/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 13 21:37:08 2002 Till Adam + + * add a little timeout after deletion of a file. The camera ignores + successive deletes otherwise. + Tue Aug 13 14:13:27 2002 Till Adam * disallow deletion of anything but the last file on the camera diff --git a/camlibs/gsmart/gsmart.c b/camlibs/gsmart/gsmart.c index 09a1007c5..d1a109999 100644 --- a/camlibs/gsmart/gsmart.c +++ b/camlibs/gsmart/gsmart.c @@ -84,6 +84,7 @@ gsmart_delete_file (CameraPrivateLibrary * lib, unsigned int index) fat_index = 0xD8000 - g_file->fat_start - 1; CHECK (gp_port_usb_msg_write (lib->gpdev, 0x06, fat_index, 0x0007, NULL, 0)); + sleep(1); /* Reread fats the next time it is accessed */ lib->dirty = 1; @@ -186,6 +187,7 @@ gsmart_request_file (CameraPrivateLibrary * lib, u_int8_t ** buf, return (GP_OK); } + int gsmart_request_thumbnail (CameraPrivateLibrary * lib, u_int8_t ** buf, unsigned int *len, unsigned int number) @@ -206,7 +208,8 @@ gsmart_request_thumbnail (CameraPrivateLibrary * lib, u_int8_t ** buf, /* FIXME implement avi downloading */ if (g_file->mime_type == FILE_TYPE_AVI) - return GP_ERROR_NOT_SUPPORTED; + return GP_ERROR_NOT_SUPPORTED; + p = g_file->fat; quality = p[40] & 0xFF;