sane-project-website/old-archive/1997-10/0019.html

131 wiersze
5.3 KiB
HTML
Czysty Zwykły widok Historia

<!-- received="Tue Oct 7 10:20:47 1997 MST" -->
<!-- sent="Mon, 06 Oct 1997 18:17:47 +0200 (CEST)" -->
<!-- name="Michael Ritzert" -->
<!-- email="Ritzert@t-online.de" -->
<!-- subject="Re: sane-0.65 released" -->
<!-- id="`<60><>" -->
<!-- inreplyto="m0xHr4e-000BYrC@charon.beck-sw.de" -->
<title>sane-devel: Re: sane-0.65 released</title>
<h1>Re: sane-0.65 released</h1>
<b>Michael Ritzert</b> (<a href="mailto:Ritzert@t-online.de"><i>Ritzert@t-online.de</i></a>)<br>
<i>Mon, 06 Oct 1997 18:17:47 +0200 (CEST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#19">[ date ]</a><a href="index.html#19">[ thread ]</a><a href="subject.html#19">[ subject ]</a><a href="author.html#19">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0020.html">Christoph Doerbeck: "GIMP and SANE (how to fix)"</a>
<li> <b>Previous message:</b> <a href="0018.html">Andrew Elwell: "Trust SP9600"</a>
<li> <b>In reply to:</b> <a href="0008.html">becka@rz.uni-duesseldorf.de: "Re: sane-0.65 released"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0021.html">Michael Ritzert: "Re: sane-0.65 released"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi everybody!<br>
<p>
On 05-Oct-97 <a href="mailto:becka@rz.uni-duesseldorf.de">becka@rz.uni-duesseldorf.de</a> wrote:<br>
<i>&gt;Hi !</i><br>
<i>&gt;</i><br>
<i>&gt;&gt; has there been any progress with respect to the MFS-12000SP problems which</i><br>
<i>&gt;&gt; were investigated in David's survey? Last version I tried was 0.62.</i><br>
<i>&gt;We have tried to investigate it, but need more test-data.</i><br>
<i>&gt;</i><br>
<i>&gt;The problem with the Lineart mode hanging seems to be timing related and there</i><br>
<i>&gt;is a hack for it by M. Ritzert. (R U reading ? Maybe you should send it to the</i><br>
<i>&gt;list).</i><br>
<p>
Oh, sorry. I sent it out, but it seems as though I had used my wrong email and<br>
the list server therefore ignored the message.<br>
<p>
Here it finally is:<br>
---8&lt;--- mustek.c.diff ---8&lt;---<br>
<p>
--- DIFF/mustek.c Mon Oct 6 19:30:33 1997<br>
+++ mustek.c Mon Oct 6 19:23:02 1997<br>
@@ -84,6 +84,7 @@<br>
10 seconds. That's not really true for Mustek scanners operating<br>
in certain modes, hence this limit. */<br>
static double strip_height;<br>
+static int lineartpatch;<br>
<br>
static int num_devices;<br>
static Mustek_Device *first_dev;<br>
@@ -349,7 +350,7 @@<br>
<br>
dev-&gt;sane.name = strdup (devname);<br>
dev-&gt;sane.vendor = "Mustek";<br>
- dev-&gt;sane.model = strndup (model_name, 11);<br>
+ dev-&gt;sane.model = strdup (model_name);<br>
dev-&gt;sane.type = "flatbed scanner";<br>
<br>
dev-&gt;x_range.min = 0;<br>
@@ -876,6 +877,8 @@<br>
line-distance correction and goes wild if they receive an LD<br>
command. */<br>
s-&gt;ld.peak_res = res;<br>
+/* s-&gt;ld.c[1].dist = 0; s-&gt;ld.c[2].dist = 1; s-&gt;ld.c[3].dist = 2;*/<br>
+/* s-&gt;ld.c[1].Qk = s-&gt;ld.c[2].Qk = s-&gt;ld.c[3].Qk = s-&gt;ld.max_value;*/<br>
return SANE_STATUS_GOOD;<br>
}<br>
<br>
@@ -1618,6 +1621,7 @@<br>
send_data (s, fp, bstat[rd].data, bstat[rd].lines, bpl, extra);<br>
rd = (rd + 1) % NELEMS(bstat);<br>
--num_reqs;<br>
+ if ((s-&gt;mode == 0) &amp;&amp; (lineartpatch == 1)) usleep( 200000 );<br>
}<br>
fclose (fp);<br>
return SANE_STATUS_GOOD;<br>
@@ -1643,6 +1647,8 @@<br>
return SANE_STATUS_GOOD;<br>
}<br>
<br>
+ lineartpatch = 0;<br>
+ <br>
while (fgets (dev_name, sizeof (dev_name), fp))<br>
{<br>
if (dev_name[0] == '#') /* ignore line comments */<br>
@@ -1682,6 +1688,12 @@<br>
DBG(2, "sane_init: strip-height set to %g inches\n",<br>
strip_height);<br>
}<br>
+ }<br>
+ else if (strncmp (str, "lineart-patch", 13) == 0 &amp;&amp;<br>
+ (isspace (str[13]) || (str[13] == 0)))<br>
+ {<br>
+ lineartpatch = 1;<br>
+ DBG(2, "sane_init: enabling lineart-patch\n");<br>
}<br>
else<br>
DBG(1, "%s: ignoring unknown option `%s'\n",<br>
<p>
---&gt;8--- mustek.c.diff ---&gt;8---<br>
<p>
It enables another option in mustek.conf: "option lineart-patch". Set it, if<br>
you think you're troubled by the timing problem.<br>
<p>
Ciao, Michael<br>
<pre>
---
_
|\/|_) -=&gt; <a href="mailto:ritzert@cfg.hd.bw.schule.de">ritzert@cfg.hd.bw.schule.de</a> &lt;=-
| | \ *Michael Ritzert* - <a href="http://home.t-online.de/home/ritzert">http://home.t-online.de/home/ritzert</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="0020.html">Christoph Doerbeck: "GIMP and SANE (how to fix)"</a>
<li> <b>Previous message:</b> <a href="0018.html">Andrew Elwell: "Trust SP9600"</a>
<li> <b>In reply to:</b> <a href="0008.html">becka@rz.uni-duesseldorf.de: "Re: sane-0.65 released"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0021.html">Michael Ritzert: "Re: sane-0.65 released"</a>
<!-- reply="end" -->
</ul>