summaryrefslogtreecommitdiff
path: root/camlibs/ricoh/ricoh.c
diff options
context:
space:
mode:
Diffstat (limited to 'camlibs/ricoh/ricoh.c')
-rw-r--r--camlibs/ricoh/ricoh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/camlibs/ricoh/ricoh.c b/camlibs/ricoh/ricoh.c
index 576c9dcbf..2f6a37630 100644
--- a/camlibs/ricoh/ricoh.c
+++ b/camlibs/ricoh/ricoh.c
@@ -317,6 +317,12 @@ ricoh_transmit (Camera *camera, GPContext *context, unsigned char cmd,
(ret_data[1] == 0x00))
break;
+ /* Check if the camera reported success, 2nd version. */
+ if ((*ret_len == 3) && (ret_data[0] == 0x00) &&
+ (ret_data[1] == 0x06) &&
+ (ret_data[2] == 0xff))
+ break;
+
/* If camera is busy, try again (but at most 4 times). */
if ((*ret_len == 3) && (ret_data[0] == 0x00) &&
(ret_data[1] == 0x04) &&