> 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