]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
only wait for first image
authorBastian Dehn <hhaalo@arcor.de>
Sun, 29 Dec 2024 10:18:12 +0000 (11:18 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 29 Dec 2024 10:18:12 +0000 (11:18 +0100)
src/kds_s2000w_net.c

index df83c3958e364bbcc419fb157728336449af0195..29293110ae94ea8c01e3e574afbeb70f1ebca0c5 100644 (file)
@@ -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;
        }