sane-project-website/old-archive/2000-06/0109.html

127 wiersze
4.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Latest sane CVS, Epson GT7000 and xsane</TITLE>
<META NAME="Author" CONTENT="Dave Hill (dave@minnie.demon.co.uk)">
<META NAME="Subject" CONTENT="Re: Latest sane CVS, Epson GT7000 and xsane">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Latest sane CVS, Epson GT7000 and xsane</H1>
<!-- received="Tue Jun 13 10:17:57 2000" -->
<!-- isoreceived="20000613171757" -->
<!-- sent="Tue, 13 Jun 2000 16:32:43 +0100" -->
<!-- isosent="20000613153243" -->
<!-- name="Dave Hill" -->
<!-- email="dave@minnie.demon.co.uk" -->
<!-- subject="Re: Latest sane CVS, Epson GT7000 and xsane" -->
<!-- id="3946541B.B826BB04@minnie.demon.co.uk" -->
<!-- inreplyto="20000606211936.A13003@khk.net" -->
<STRONG>From:</STRONG> Dave Hill (<A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20Latest%20sane%20CVS,%20Epson%20GT7000%20and%20xsane&In-Reply-To=&lt;3946541B.B826BB04@minnie.demon.co.uk&gt;"><EM>dave@minnie.demon.co.uk</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue Jun 13 2000 - 08:32:43 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0110.html">khk@khk.net: "Re: Latest sane CVS, Epson GT7000 and xsane"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0108.html">rjtalbo: "Re: Mustek 1200SP and AVA-1505/1515"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0049.html">khk@khk.net: "Re: Latest sane CVS, Epson GT7000 and xsane"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0110.html">khk@khk.net: "Re: Latest sane CVS, Epson GT7000 and xsane"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#109">[ date ]</A>
<A HREF="index.html#109">[ thread ]</A>
<A HREF="subject.html#109">[ subject ]</A>
<A HREF="author.html#109">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi Karl
<BR>
<P>spent some time debugging today. The problem seems to be that
<BR>
when deciding whether to do color shuffle, you check the value
<BR>
of &quot;optical_res&quot;. This is not initialised for any other scanner
<BR>
than a D1, as the identity2 routine isn't called.
<BR>
<P>I added a &quot;memset()&quot; call in attach() to initialise everything
<BR>
to zero and it now works. I suppose it is a bit &quot;sledgehammer&quot;
<BR>
though!
<BR>
<P>I also fixed the &quot;sane_close()&quot; bug reported by Jochen/Henning,
<BR>
and changed &quot;close(scanner(s))&quot;(??) to &quot;close_scanner(s)&quot; in
<BR>
&quot;sane_close()&quot;.
<BR>
<P>Dave
<BR>
<P><PRE>
--
Dave Hill, Kempston, Bedford UK <A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20Latest%20sane%20CVS,%20Epson%20GT7000%20and%20xsane&In-Reply-To=&lt;3946541B.B826BB04@minnie.demon.co.uk&gt;">dave@minnie.demon.co.uk</A>
davehill at users.sourceforge.net
Sicth munce ago, I cutn't evun spel enjuneer, and now I are one!
</PRE>
<P>
--- sane-1.0.2_20000605/backend/epson.c.orig Mon Jun 5 21:11:09 2000
+++ sane-1.0.2_20000605/backend/epson.c Tue Jun 13 16:22:12 2000
@@ -1477,6 +1477,7 @@
* set dummy values.
*/
+ memset(dev, 0, sizeof(*dev));
s-&gt;hw = dev;
s-&gt;hw-&gt;sane.name = NULL;
s-&gt;hw-&gt;sane.type = &quot;flatbed scanner&quot;;
@@ -2697,10 +2698,10 @@
if (prev)
prev-&gt;next = s-&gt;next;
else
- first_handle = s;
+ first_handle = s-&gt;next;
if (s-&gt;fd != -1)
- close(scanner(s));
+ close_scanner(s);
free(s);
}
<P><P><P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Latest%20sane%20CVS,%20Epson%20GT7000%20and%20xsane&In-Reply-To=&lt;3946541B.B826BB04@minnie.demon.co.uk&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0110.html">khk@khk.net: "Re: Latest sane CVS, Epson GT7000 and xsane"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0108.html">rjtalbo: "Re: Mustek 1200SP and AVA-1505/1515"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0049.html">khk@khk.net: "Re: Latest sane CVS, Epson GT7000 and xsane"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0110.html">khk@khk.net: "Re: Latest sane CVS, Epson GT7000 and xsane"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#109">[ date ]</A>
<A HREF="index.html#109">[ thread ]</A>
<A HREF="subject.html#109">[ subject ]</A>
<A HREF="author.html#109">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Tue Jun 13 2000 - 10:20:55 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>