kopia lustrzana https://gitlab.com/sane-project/backends
epsonds: fix duplex w/ double feed detection
rodzic
e9b52639e8
commit
6d8b8d5aa6
|
@ -1111,13 +1111,19 @@ sane_start(SANE_Handle handle)
|
|||
sprintf(buf, "#ADF%s%s",
|
||||
s->val[OPT_ADF_MODE].w ? "DPLX" : "",
|
||||
s->val[OPT_ADF_SKEW].w ? "SKEW" : "");
|
||||
#if 0
|
||||
if (s->hw->adf_has_dfd == 2) {
|
||||
strcat(buf, "DFL2");
|
||||
} else if (s->hw->adf_has_dfd == 1) {
|
||||
strcat(buf, "DFL1");
|
||||
|
||||
/* it seems that DFL only works in duplex mode, but it's
|
||||
* also required to be enabled or duplex will be rejected.
|
||||
*/
|
||||
|
||||
if (s->val[OPT_ADF_MODE].w) {
|
||||
if (s->hw->adf_has_dfd == 2) {
|
||||
strcat(buf, "DFL2");
|
||||
} else if (s->hw->adf_has_dfd == 1) {
|
||||
strcat(buf, "DFL1");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
} else if (strcmp(source_list[s->val[OPT_SOURCE].w], FBF_STR) == 0) {
|
||||
|
||||
strcpy(buf, "#FB ");
|
||||
|
|
Ładowanie…
Reference in New Issue