]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add debug info and increment current image
authorBastian Dehn <hhaalo@arcor.de>
Tue, 6 Feb 2024 18:29:54 +0000 (19:29 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 6 Feb 2024 18:29:54 +0000 (19:29 +0100)
src/kds_s2000w_handler.c

index 100945b342048df1ef2e0962f20eec6803d6230d..f9e08948f9504d820ac3c024232a4e9a5f3d28e9 100644 (file)
@@ -253,9 +253,11 @@ metadata kds_s2000w_handler_get_parameters()
        _download_current_image();
        _get_current_metadata();
        _delete_current_image();
+       printf("current image number: %i\n", current_scan_status.complete_scanned);
        printf("current available images: %i\n", current_scan_status.available_images);
        printf("current downloaded images: %i\n", current_scan_status.downloaded_images);
-       printf("complete_scanned: %i\n", current_scan_status.complete_scanned);
+       printf("complete scanned: %i\n", current_scan_status.complete_scanned);
+       current_scan_status.current_image_number++;
 
        return current_scan_status.mdata;
 }
\ No newline at end of file