avision: Make scanning multiple sheets work for AV220D2+

When scanning a larger number of pages/sheets (e.g.20) I always had to
scan only one sheet (2 pages) at a time in xsane or simple-scan. This
works perfectly fine, you just have to push the button to scan two more
pages every second or so, after the previous two pages complete.

If you try to scan 20 pages (10 sheets) in one row, only the first two
pages will be scanned. The second sheet will be fed through the scanner
but then everything will lock up. The image data from the second sheet
will not show up, and after some seconds, SANE will report I/O errors.

This patch makes scanning any number of pages/sheets in one go work.

Closes #453
merge-requests/603/head
Harald Welte 2021-03-11 20:21:22 +01:00
rodzic 5819a79ab0
commit ae29f8d73c
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -6835,6 +6835,7 @@ do_eof (Avision_Scanner *s)
/* we do not scan anymore */
s->prepared = s->scanning = SANE_FALSE;
s->page = 0;
/* we can now mark the rear data as valid */
if (s->avdimen.interlaced_duplex ||