[sane-devel] Canon imageClass MFP's

nicols nicolas.martin at freesurf.fr
Mon Apr 21 12:19:01 UTC 2008


Yep, you’re right, there’s a change to apply to pixma.c, will update it as
well.
The PIXMA_CAP_ADFDUP looks to be a a “double flag”:

#define PIXMA_CAP_ADFDUP       ((1 << 7) | PIXMA_CAP_ADF)

Should we probably change also its name to sthg more explicit, like
PIXMA_CAP_ADF_OR_ADFDUP  …
BTW, did you have also opportunity to test the iclass_finish_scan() change
proposed for the “free” issue?



Dennis Lou wrote:
> 
> Regarding the ADF duplex issue, this line looks suspect:
> 
> Index: pixma.c
> ===================================================================
> RCS file: /cvsroot/sane/sane-backends/backend/pixma.c,v
> retrieving revision 1.11
> diff -a -u -r1.11 pixma.c
> --- pixma.c     2 Apr 2008 20:13:48 -0000       1.11
> +++ pixma.c     21 Apr 2008 00:53:47 -0000
> @@ -641,7 +641,7 @@
>        i++;
>      }
>  #if 1
> -  if (cfg->cap & PIXMA_CAP_ADFDUP)
> +  if ((cfg->cap & PIXMA_CAP_ADFDUP) == PIXMA_CAP_ADFDUP)
>      {
>        ss->source_list[i] = SANE_I18N ("ADF Duplex");
>        ss->source_map[i] = PIXMA_SOURCE_ADFDUP;
> 
> 
> 
> -Dennis
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Canon-imageClass-MFP%27s-tp16736778p16807484.html
Sent from the SANE - Dev mailing list archive at Nabble.com.




More information about the sane-devel mailing list