kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Remove duplicate way to check for transparency support
rodzic
4cfc150bdc
commit
5fb5da4f78
|
@ -442,9 +442,6 @@ enum class ModelFlag : unsigned
|
|||
// use 14-bit gamma table instead of 12-bit
|
||||
GAMMA_14BIT = 1 << 1,
|
||||
|
||||
// has XPA adapter
|
||||
XPA = 1 << 3,
|
||||
|
||||
// skip lamp warmup (genesys_warmup())
|
||||
SKIP_WARMUP = 1 << 4,
|
||||
|
||||
|
|
|
@ -3119,7 +3119,7 @@ void CommandSetGl646::update_hardware_sensors(Genesys_Scanner* session) const
|
|||
}
|
||||
|
||||
/* XPA detection */
|
||||
if (has_flag(dev->model->flags, ModelFlag::XPA)) {
|
||||
if (dev->model->has_method(ScanMethod::TRANSPARENCY)) {
|
||||
switch (dev->model->gpio_id) {
|
||||
case GpioId::HP3670:
|
||||
case GpioId::HP2400:
|
||||
|
|
|
@ -1512,7 +1512,6 @@ void genesys_init_usb_device_tables()
|
|||
model.gpio_id = GpioId::HP3670;
|
||||
model.motor_id = MotorId::HP3670;
|
||||
model.flags = ModelFlag::GAMMA_14BIT |
|
||||
ModelFlag::XPA |
|
||||
ModelFlag::DARK_CALIBRATION |
|
||||
ModelFlag::OFFSET_CALIBRATION |
|
||||
ModelFlag::CUSTOM_GAMMA;
|
||||
|
|
Ładowanie…
Reference in New Issue