[sane-devel] [PATCH 2/3] magicolor: complete support for duplex ADF
Eduard - Gabriel Munteanu
edgmnt at gmail.com
Fri Sep 4 10:50:49 UTC 2015
This is needed to fully-support scanners like magicolor 4960MF.
Signed-off-by: Eduard - Gabriel Munteanu <edgmnt at gmail.com>
---
backend/magicolor.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/backend/magicolor.c b/backend/magicolor.c
index d934321..fa06074 100644
--- a/backend/magicolor.c
+++ b/backend/magicolor.c
@@ -1176,7 +1176,12 @@ mc_set_scanning_parameters(Magicolor_Scanner * s)
/* ADF used? */
if (strcmp(source_list[s->val[OPT_SOURCE].w], ADF_STR) == 0) {
/* Use ADF */
- source = 0x01;
+ if (s->val[OPT_ADF_MODE].w == 0) {
+ source = 0x01;
+ } else {
+ /* Use duplex */
+ source = 0x02;
+ }
} else {
source = 0x00;
}
--
2.5.0
More information about the sane-devel
mailing list