From: Bastian Dehn Date: Sun, 29 Dec 2024 10:18:12 +0000 (+0100) Subject: only wait for first image X-Git-Tag: v1.0.18^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=63a8c285eaf1412a01a4c0633748689c39bd1a97;p=sane-kds-s2000w-net.git only wait for first image --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index df83c39..2929311 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -184,15 +184,11 @@ SANE_Status _sane_kds_s2000w_net_start(SANE_Handle handle) kds_s2000w_handler_start_scan(h); } - if (h->current_scan_status->feeder != 1 - && h->current_scan_status->downloaded_images > 0 - && h->current_scan_status->available_images < 1) - return SANE_STATUS_NO_DOCS; - for (int i = 0; i < 30; i++) { kds_s2000w_net_handler_get_current_scan_status(h); - if (h->current_scan_status->available_images > 0) + if (h->current_scan_status->available_images > 0 + || h->current_scan_status->downloaded_images > 0) break; }