sense_handler() crashes with Canon IX-4015 after the scanner is powered on
because
scanner returns unit attention - power on reset sense status as a reply to the
Test Unit Ready command after power on - and dev is still NULL at that time.
The non-NULL dev is needed only to check if the device is
Some scanners (e.g. IX-4015) support diangostics but not calibration
so separate these two capabilities.
diff --git a/backend/canon.c b/backend/canon.c
index f7d3fe1..cf45d42 100644
--- a/backend/canon.c
+++ b/backend/canon.c
@@ -840,6 +840,7 @@ attach (const char *devnam, CANON_Device ** devp)
This adds support for Canon IX-4015 scanner. The difference from other scanners
supported by this backend is that it has no highlight and shadow settings - the
corresponding bytes in set_window command must be zero or it will fail.
IX-4015 has optical resolution of 400 dpi, can interpolate up to
IX-4015 requires medium_position after cancelling a scan. Without that, it
does not return to home position and refuses to accept any other commands.
--- a/backend/canon.c
+++ b/backend/canon.c
@@ -1671,7 +1671,9 @@ init_options (CANON_Scanner * s)
s-opt[OPT_EJECT_AFTERSCAN].cap |=
We now have a nice stack of patches to support this scanner. I would
like to commit them before this release. Ulrich- are you OK with that?
allan
On Tue, Jul 17, 2012 at 3:17 PM, Ulrich Deiters
ulrich.deiters at uni-koeln.de wrote:
Greetings,
I cannot see from here (I am on vacation) which
://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120810/193fec94/attachment.html