It looks like you got it exactly right. I noticed when xscanimage starts
it outputs a firmware of 1.20. I added this in do_dummy_scan and it looks
like it works perfectly! Thanks!
[Actually, it looks like do_dummy_scan returns SANE_STATUS_GOOD if
it doesn't know about the scanner, I'm kinda curious why it doesn't at least
return something to indicate that something is wrong. Is that an idea for
a future improvement?]
Here's the patch, which includes the x6el patch posted by Christian Grigis
on 30-Nov-1998.
----------------------------------------------------------
--- microtek2.c.old Wed Nov 4 23:28:28 1998
+++ microtek2.c Sat Feb 13 10:22:00 1999
@@ -1984,12 +1984,15 @@
Microtek2_Info *mi;
SANE_Status status;
md = ms->dev;
mi = &md->info[md->scan_source];
if ( ! ( md->info[MD_SOURCE_FLATBED].model_code == 0x97
- && md->revision == 1.00 )
- && ! ( md->info[MD_SOURCE_FLATBED].model_code == 0x91
- && md->revision == 1.00 ) )
+ && md->revision == 1.00 )
+ && ! ( md->info[MD_SOURCE_FLATBED].model_code == 0x91
+ && md->revision == 1.00 )
+ && !(md->info[MD_SOURCE_FLATBED].model_code == 0x98
+ && (md->revision == 1.30 || md->revision == 1.20)))
return SANE_STATUS_GOOD;
DBG(30, "do_dummy_scan: ms=%p\n", ms);
----------------------------------------------------------
John
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com