sane-project-website/old-archive/1999-04/0017.html

75 wiersze
2.7 KiB
HTML

<!-- received="Fri Apr 2 12:11:31 1999 PST" -->
<!-- sent="Tue, 9 Mar 1999 11:18:54 +0100 (MET)" -->
<!-- name="Joerg Anders" -->
<!-- email="J.Anders@Informatik.TU-Chemnitz.DE" -->
<!-- subject="Error in "mustek.c"" -->
<!-- id=" " -->
<!-- inreplyto="" -->
<title>sane-devel: Error in "mustek.c"</title>
<h1>Error in "mustek.c"</h1>
<b>Joerg Anders</b> (<a href="mailto:J.Anders@Informatik.TU-Chemnitz.DE"><i>J.Anders@Informatik.TU-Chemnitz.DE</i></a>)<br>
<i>Tue, 9 Mar 1999 11:18:54 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#17">[ date ]</a><a href="index.html#17">[ thread ]</a><a href="subject.html#17">[ subject ]</a><a href="author.html#17">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0018.html">David F. Skoll: "Change of address"</a>
<li> <b>Previous message:</b> <a href="0016.html">Marc Rassbach: "Sheet feeder scanners?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
There is a bug in "sane-xxx/backend/mustek.c". (If think<br>
even in the version 1.00) at the begining of the<br>
function "sane_start":<br>
<p>
<p>
/* First make sure we have a current parameter set. Some of the<br>
parameters will be overwritten below, but that's OK. */<br>
status = sane_get_parameters (s, 0);<br>
if (status != SANE_STATUS_GOOD)<br>
return status;<br>
<p>
I inserted:<br>
<p>
/* First make sure we have a current parameter set. Some of the<br>
parameters will be overwritten below, but that's OK. */<br>
status = sane_get_parameters (s, 0);<br>
<p>
/* Changed on 2/24/1998 by J. Anders: */<br>
<p>
if (!strcmp(s-&gt;val[OPT_SOURCE].s, "Automatic Document Feeder") &amp;&amp;<br>
!(s-&gt;hw-&gt;flags &amp; MUSTEK_FLAG_ADF_READY)) {<br>
return SANE_STATUS_NO_DOCS;<br>
}<br>
if (status != SANE_STATUS_GOOD)<br>
return status;<br>
<p>
Otherwise SANE_STATUS_GOOD is returend and if you have an<br>
automatic document feeder it isn't detectable that no <br>
paper is in the document feeder.<br>
<p>
I tested it with version 0.73. But I think version 1.00 will<br>
have the same false behaviour.<br>
<br>
<p>
<pre>
--
J.Anders, Chemnitz, GERMANY (<a href="mailto:ja@informatik.tu-chemnitz.de">ja@informatik.tu-chemnitz.de</a>)
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0018.html">David F. Skoll: "Change of address"</a>
<li> <b>Previous message:</b> <a href="0016.html">Marc Rassbach: "Sheet feeder scanners?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>