]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
reduce wait time for first picture
authorBastian Dehn <hhaalo@arcor.de>
Wed, 28 Feb 2024 14:41:41 +0000 (15:41 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 28 Feb 2024 14:41:41 +0000 (15:41 +0100)
src/kds_s2000w_net.c

index 4909941cafb476db19b168989b2f44085ed475f9..d030187e0bb98f6d35b4af525fb59f0eb6ef0e23 100644 (file)
@@ -174,8 +174,8 @@ SANE_Status _sane_kds_s2000w_net_start(SANE_Handle handle)
                kds_s2000w_handler_start_scan(h);
        }
 
-       for (int i = 0; i < 100; i++) {
-               usleep(100000);
+       for (int i = 0; i < 200; i++) {
+               usleep(50000);
                kds_s2000w_handler_get_parameters(h);
                if (h->current_metadata->valid)
                        break;