kopia lustrzana https://gitlab.com/sane-project/backends
simple scan sends cancel on page finish ...
rodzic
c9e8d812df
commit
1fb0a78dd8
|
@ -322,6 +322,7 @@ clean_and_copy_data(const SANE_Byte * source, SANE_Int source_size,
|
||||||
if(available_bytes_to_read > 0){
|
if(available_bytes_to_read > 0){
|
||||||
return SANE_STATUS_GOOD;
|
return SANE_STATUS_GOOD;
|
||||||
}else{
|
}else{
|
||||||
|
ldev->eof = 0;
|
||||||
return SANE_STATUS_EOF;
|
return SANE_STATUS_EOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1155,9 +1156,9 @@ sane_cancel (SANE_Handle handle)
|
||||||
if (lexmark_device == handle)
|
if (lexmark_device == handle)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sanei_usb_reset (lexmark_device->devnum);
|
//sanei_usb_reset (lexmark_device->devnum);
|
||||||
|
|
||||||
lexmark_device->device_cancelled = SANE_TRUE;
|
//lexmark_device->device_cancelled = SANE_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Ładowanie…
Reference in New Issue