From 35e48da4a89355750449730c62fd1da1a9d129de Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Mon, 13 Apr 2020 07:19:28 +0300 Subject: [PATCH 1/2] genesys: Fix invalid home position reporting on LiDE 700F --- backend/genesys/genesys.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/genesys/genesys.cpp b/backend/genesys/genesys.cpp index 1f3867d97..451bfc7f5 100644 --- a/backend/genesys/genesys.cpp +++ b/backend/genesys/genesys.cpp @@ -802,6 +802,12 @@ void scanner_move(Genesys_Device& dev, ScanMethod scan_method, unsigned steps, D } // wait until feed count reaches the required value + if (dev.model->model_id == ModelId::CANON_LIDE_700F) { + if (dev.cmd_set->needs_update_home_sensor_gpio()) { + dev.cmd_set->update_home_sensor_gpio(dev); + } + } + // FIXME: should porbably wait for some timeout Status status; for (unsigned i = 0;; ++i) { From 901827c8c72aef642e025d054546e80bacf15bd5 Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Mon, 13 Apr 2020 07:19:29 +0300 Subject: [PATCH 2/2] genesys: Disable currently unsupported resolutions on LiDE 700F --- backend/genesys/tables_model.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/genesys/tables_model.cpp b/backend/genesys/tables_model.cpp index f5d489a86..838ab8c73 100644 --- a/backend/genesys/tables_model.cpp +++ b/backend/genesys/tables_model.cpp @@ -950,9 +950,10 @@ void genesys_init_usb_device_tables() model.resolutions = { { + // FIXME: support 2400 ad 4800 dpi { ScanMethod::FLATBED }, - { 4800, 2400, 1200, 600, 300, 200, 150, 100, 75 }, - { 4800, 2400, 1200, 600, 300, 200, 150, 100, 75 }, + { 1200, 600, 300, 200, 150, 100, 75 }, + { 1200, 600, 300, 200, 150, 100, 75 }, } };