From 897f697d7ded06b6355a1c5fb0bbaec93cace4eb Mon Sep 17 00:00:00 2001 From: Till Adam Date: Sun, 19 Jan 2003 18:53:02 +0000 Subject: [PATCH] add init code for the Maxell I forgot to include. Slighly modified patch by Michel Xhaard . git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6122 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/gsmart/gsmart.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/camlibs/gsmart/gsmart.c b/camlibs/gsmart/gsmart.c index cf48a2486..7e9aa460f 100644 --- a/camlibs/gsmart/gsmart.c +++ b/camlibs/gsmart/gsmart.c @@ -672,10 +672,15 @@ gsmart_reset (CameraPrivateLibrary * lib) * Cant hurt, I guess. */ CHECK (gp_port_usb_msg_write (lib->gpdev, 0x02, 0x0000, 0x07, NULL, 0)); - } else if (lib->bridge == GSMART_BRIDGE_SPCA504A - || lib->bridge == GSMART_BRIDGE_SPCA504B) { + } else if (lib->bridge == GSMART_BRIDGE_SPCA504A) { CHECK (gp_port_usb_msg_write (lib->gpdev, 0x02, 0x0000, 0x0003, NULL, 0)); + } else if (lib->bridge == GSMART_BRIDGE_SPCA504B) { + CHECK (gp_port_usb_msg_write(lib->gpdev, 0, 1, + GSMART_REG_AutoPbSize, NULL, 0)); + CHECK (gp_port_usb_msg_write(lib->gpdev, 0, 0, + 0x0d04, NULL, 0)); + CHECK (gp_port_usb_msg_write(lib->gpdev, 0x1e, 0, 0, NULL, 0)); } sleep (1); return GP_OK;