1
--- hplip-3.12.2/scan/sane/hpaio.c~ 2012-02-01 11:52:35.000000000 +0000
2
+++ hplip-3.12.2/scan/sane/hpaio.c 2012-05-17 10:07:20.000000000 +0100
4
hpaio->option[OPTION_ADF_MODE].constraint_type = SANE_CONSTRAINT_STRING_LIST;
5
hpaio->option[OPTION_ADF_MODE].constraint.string_list = hpaio->adfModeList;
7
- // Duplex scanning is supported
8
- if (hpaio->supportsDuplex == 1)
10
+ // hpaioUpdateDescriptors will leave this active or inactive depending
11
+ // on whether duplex is supported
12
hpaio->option[OPTION_DUPLEX].name = STR_NAME_DUPLEX;
13
hpaio->option[OPTION_DUPLEX].title = STR_TITLE_DUPLEX;
14
hpaio->option[OPTION_DUPLEX].desc = STR_DESC_DUPLEX;
16
SANE_CAP_SOFT_DETECT |
18
hpaio->option[OPTION_DUPLEX].constraint_type = SANE_CONSTRAINT_NONE;
21
hpaio->option[GROUP_GEOMETRY].title = STR_TITLE_GEOMETRY;
22
hpaio->option[GROUP_GEOMETRY].type = SANE_TYPE_GROUP;
23
hpaio->option[GROUP_GEOMETRY].cap = SANE_CAP_ADVANCED;