Levente NOVAK <novak@jaguar.dote.hu> writes:
> PS: By the way, I visited the microtek2 USB homepage, but the link
> http://fachschaft.cup.uni-muenchen.de/~neukum/sane.diff was broken.
Hmm. I don't know if Oliver added anything to my version, but here is
what I sent him (relative to sane-cvs). The patch to
sanei/sanei_scsi.c should not be necessary if sane is setup properly,
and is probably incorrect wrt other sane backends.
Index: backend/microtek2.c
===================================================================
RCS file: /cvsroot/external/sane/backend/microtek2.c,v
retrieving revision 1.2
diff -u -r1.2 microtek2.c
--- microtek2.c 2000/03/05 13:55:09 1.2
+++ microtek2.c 2000/05/19 17:22:18
@@ -2217,6 +2217,11 @@
if ( md->revision == 1.00 )
md->model_flags |= MD_OFFSET_2;
break;
+ case 0x99:
+ *model_string = "Scanmaker X6";
+ if ( md->revision == 1.00 )
+ md->model_flags |= MD_OFFSET_2;
+ break;
case 0x9a:
*model_string = "Phantom 636cx / C6";
/* The Phantom 636cx says it supports the SLIDE mode, but it */
@@ -6586,7 +6591,7 @@
if ( md_dump >= 2 )
dump_area2(cmd, RI_CMD_L, "readimagecmd");
- size = ms->src_buffer_size;
+ size = ms->transfer_length;
status = sanei_scsi_cmd(ms->sfd, cmd, sizeof(cmd), buffer, &size);
/* ms->buf.src_buffer[ms->buf.current_src], &size);*/
Index: sanei/sanei_scsi.c
===================================================================
RCS file: /cvsroot/external/sane/sanei/sanei_scsi.c,v
retrieving revision 1.2
diff -u -r1.2 sanei_scsi.c
--- sanei_scsi.c 2000/03/05 13:57:15 1.2
+++ sanei_scsi.c 2000/05/19 17:25:19
@@ -1302,13 +1302,15 @@
/* make sure that we got as much memory as we wanted, otherwise
the backend might be confused
*/
- if (real_buffersize != wanted_buffersize)
+ /*
+ if (real_buffersize != wanted_buffersize)
{
DBG(1, "sanei_scsi_open: could not allocate SG buffer memory "
"wanted: %i got: %i\n", wanted_buffersize, real_buffersize);
sanei_scsi_close(*fdp);
return SANE_STATUS_NO_MEM;
}
+ */
return res;
}
---- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Fri May 26 2000 - 18:18:01 PDT