kopia lustrzana https://gitlab.com/sane-project/backends
epson2: check for warming up condition after a start failure
Sometimes a "fatal error" is given back when the scanner is warming up. The previousversion of the code checked for that issue only when the ADF was in use.merge-requests/1/head
rodzic
728e032a5a
commit
e1b835bf48
|
@ -2438,8 +2438,10 @@ sane_start(SANE_Handle handle)
|
|||
if (dev->extended_commands) {
|
||||
status = e2_start_ext_scan(s);
|
||||
|
||||
/* check if the scanner signaled a warming up */
|
||||
if (status == SANE_STATUS_IO_ERROR && s->hw->use_extension) {
|
||||
/* sometimes the scanner gives an io error when
|
||||
* it's warming up.
|
||||
*/
|
||||
if (status == SANE_STATUS_IO_ERROR) {
|
||||
status = e2_wait_warm_up(s);
|
||||
if (status == SANE_STATUS_GOOD)
|
||||
status = e2_start_ext_scan(s);
|
||||
|
|
Ładowanie…
Reference in New Issue