From 63a8c285eaf1412a01a4c0633748689c39bd1a97 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 29 Dec 2024 11:18:12 +0100 Subject: [PATCH] only wait for first image --- src/kds_s2000w_net.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; } -- 2.39.5