Re: Linux Sense buffer (was: sane 0.71 and microtek E3)

Didier Carlier (didier@sema.be)
Mon, 30 Mar 1998 11:03:25 +0200

jafo@tummy.com said:
> I sent a query to Leonard Zubkoff asking for his opinion, and he says
> that the code appears to work that way. I haven't had a chance to
> try it with the BusLogic drivers that he authors yet though. It
> looks like the:

> if (req->cdb.hdr.result == 0 && (req->cdb.hdr.sense_buffer[0] &
> 0x7f) == 0)

> needs to be changed to:

> if (req->cdb.hdr.result == 0)

> for SANE to work on NCR, DPT, and some AHA systems.

This will not work with all scanners, e.g. the coolscan. Problems only occur with those backends which are not prepared to be called with information in the sense buffer but with a 0 result. That is a problem with the backends though, not with the code above (IMHO).

Didier

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com