> The problem here is that the vendor string is not unique, because
> Microtek uses the same eight spaces as vendor id for their scanners.
>
> From the point of view of the the microtek2 backend it would be best to
> check for "result + 36 == 0x00", because microtek2 expects a
> model code !=0 at this position.
>
> Bernd
This is the current code that I have, I hadn't put in the check for position
36, but did once you mentioned it. This is probably a bit over-checking, but
if I find it too restrictive I can loosen it up some.
if ((result[0] == 0x6 ) &&
(strncmp (result + 32, "1.90", 4 ) == 0 ) &&
(result[36] == 0x00 ) &&
(strncmp (result + 8, " ", 8 ) == 0 ) &&
(strncmp (result + 16, "Flatbed Scanner ", 16 ) == 0 ))
{
DBG( 4, "Found BlackWidow BW4800SP scanner, setting up like AT3\n" );
The BlackWidow BW4800SP had the same firmware revision as my AT3 (v1.90) so
I coded in that check for now.
Chris
*****************************************************************************
** Chris Pinkham Linux v2.0.35, Sane v0.74, GIMP v1.0 **
** cpinkham@sh001.infi.net http://www4.infi.net/~cpinkham/ **
*****************************************************************************
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com