[sane-devel] "hp4200" backend detects non-HP scanners as HP ScanJet 4200
Thu, 4 Sep 2003 11:24:09 +0200
On Sun, Aug 31, 2003 at 02:04:38PM +0200, Till Kamppeter wrote:
> Now, within the two days which me original posting needed to arrive on
> the SANE list, there is more information. See
> Especially also a user with a Mustek ScanExpress 1200 ("gt68xx" driver)
> observed this problem. It seems that the "hp4200" backend recognizes
> every scanner on USB as an HP ScanJet 4200.
There is a macro "NO_AUTODETECT" that's used in that code. Maybe it's
Anyway, the code assumes that the parameter for sanei_usb_open is a
filedescriptor and uses open instead of sanei_usb_open. That's not
possible anymore in recent SANE versions. I'm pretty much surprised
that it works at all.
That external backend needs a maintainer to avoid bit-rot.