]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add debug finish and loaded
authorBastian Dehn <hhaalo@arcor.de>
Tue, 6 Feb 2024 20:17:40 +0000 (21:17 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 6 Feb 2024 20:19:18 +0000 (21:19 +0100)
src/kds_s2000w_net.c

index b08a555e7396aad9776accc772b090bd889fed62..959b0ed69d5c8b980168895dfdea20be4eba783c 100644 (file)
@@ -219,12 +219,14 @@ SANE_Status _sane_kds_s2000w_net_read(SANE_Handle handle, SANE_Byte* data,
 {
        printf("is all scanned: %i\n", current_metadata.scanned_all_complete);
        if (current_metadata.scanned_all_complete && !cancel) {
+               printf("scan is finished\n");
                read_size = 0;
                _sane_kds_s2000w_net_cancel(NULL);
                return SANE_STATUS_GOOD;
        }
 
        if (read_size >= current_metadata.size) {
+               printf("Image is loaded\n");
                read_size = 0;
                *length = 0;
                return SANE_STATUS_EOF;