kopia lustrzana https://gitlab.com/sane-project/backends
genesys: corrections for 4400f buttons.
Additional special PDF buttons not yet included. We need a strategy to deal with them.escl-add-user-and-password
rodzic
ab7b3a38e2
commit
54766358b5
|
@ -1693,6 +1693,10 @@ void CommandSetGl843::update_hardware_sensors(Genesys_Scanner* s) const
|
||||||
s->buttons[BUTTON_EMAIL_SW].write((val & 0x08) == 0);
|
s->buttons[BUTTON_EMAIL_SW].write((val & 0x08) == 0);
|
||||||
break;
|
break;
|
||||||
case GpioId::CANON_4400F:
|
case GpioId::CANON_4400F:
|
||||||
|
s->buttons[BUTTON_COPY_SW].write((val & 0x68) == 0x28);
|
||||||
|
s->buttons[BUTTON_TRANSP_SW].write((val & 0x68) == 0x20);
|
||||||
|
s->buttons[BUTTON_EMAIL_SW].write((val & 0x68) == 0x08);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -447,7 +447,7 @@ void genesys_init_usb_device_tables()
|
||||||
ModelFlag::SHADING_REPARK |
|
ModelFlag::SHADING_REPARK |
|
||||||
ModelFlag::UTA_NO_SECONDARY_MOTOR;
|
ModelFlag::UTA_NO_SECONDARY_MOTOR;
|
||||||
|
|
||||||
model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW;
|
model.buttons = GENESYS_HAS_TRANSP_SW | GENESYS_HAS_EMAIL_SW | GENESYS_HAS_COPY_SW;
|
||||||
model.search_lines = 100;
|
model.search_lines = 100;
|
||||||
|
|
||||||
s_usb_devices->emplace_back(0x04a9, 0x2228, model);
|
s_usb_devices->emplace_back(0x04a9, 0x2228, model);
|
||||||
|
|
Ładowanie…
Reference in New Issue