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
Alessandro Zummo 2009-06-02 19:19:29 +02:00
rodzic 728e032a5a
commit e1b835bf48
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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);