genesys: Remove duplicate way to check for transparency support

merge-requests/340/head
Povilas Kanapickas 2020-02-03 00:41:52 +02:00
rodzic 4cfc150bdc
commit 5fb5da4f78
3 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -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,

Wyświetl plik

@ -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:

Wyświetl plik

@ -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;