Re: sane_read returning *len == 0

Chris Pinkham (cpinkham@billing.infi.net)
Fri, 3 Apr 1998 11:23:38 -0500 (EST)

> This is indeed a bug. Can you try changing xscanimage.c around line
> 584 to read like this:
>
> if (scan_win.input_tag >= 0 && !len)
> break; /* out of data for now */
>
> and tell me how it works?

I should have put this in my first post. I did go into xscanimage.c and
xcam.c and add an if statement (for my own testing) that would just
continue the while(1) loop if the program still needed to retrieve data
but there wasn't any waiting. I was able to scan correctly using
xcanimage and xcam after I did this. I will try out your mod when I
get home tonight and give an update here.

Chris

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| Chris Pinkham |
| cpinkham@sh001.infi.net |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com