[sane-devel] Problem with sane-backends-1.0.8-pre1 and HP Scanjet 2200C

Ville Hallik ville@linux.ee
Mon, 27 May 2002 00:03:57 +0300 (EEST)


On Sun, 26 May 2002, Jaeger, Gerhard wrote:

> On Saturday, 25. May 2002 21:48, Ville Hallik wrote:
> > There is a big problem with HP 2200C (and possibly other USB scanners
> > supported by plustek backend). The difference between values stored in
> > registers 0x4e and 0x4f (pause/resume scan when buffer is n*x kB full) is
> > too small.
[snip]
> Have you already checked this?

Yes, sane-backends-1.0.8-pre1 works for me with the following patch:

--- backend/plustek-usbscan.c.orig	Sat May 25 21:51:10 2002
+++ backend/plustek-usbscan.c	Sat May 25 21:51:55 2002
@@ -1085,7 +1085,8 @@
 /* original code:
  *	a_bRegs[0x4f] = 1;
  */
-	a_bRegs[0x4f] = a_bRegs[0x4e] - 1;
+/*	a_bRegs[0x4f] = a_bRegs[0x4e] - 1; */
+	a_bRegs[0x4f] = 1;

 	DBG( _DBG_INFO, "PauseLimit = %lu, [0x4e] = 0x%02x, [0x4f] = 0x%02x\n",
 					m_dwPauseLimit, a_bRegs[0x4e], a_bRegs[0x4f] );