From b57f0fd362b977cffed1c95a600f2db89733f0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Mon, 21 Sep 2009 21:52:09 +0200 Subject: [PATCH] sheetfed scanners don't (can't) calibrate at each sane_start() --- backend/genesys.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/genesys.c b/backend/genesys.c index 102797ff5..aed446579 100644 --- a/backend/genesys.c +++ b/backend/genesys.c @@ -4061,8 +4061,9 @@ genesys_start_scan (Genesys_Device * dev) if (status == SANE_STATUS_UNSUPPORTED) { /* calibration : sheetfed scanners can't calibrate before each scan */ - /* so we use a NO_CALIBRATION flags for those scanners */ - if (!(dev->model->flags & GENESYS_FLAG_NO_CALIBRATION)) + /* and also those who have the NO_CALIBRATION flag */ + if (!(dev->model->flags & GENESYS_FLAG_NO_CALIBRATION) + &&dev->model->is_sheetfed == SANE_FALSE) { status = genesys_scanner_calibration (dev); if (status != SANE_STATUS_GOOD)