kopia lustrzana https://gitlab.com/sane-project/backends
Always send registers before trying to acquire a line
rodzic
4aaf5a1dcf
commit
a0ea955e91
|
@ -4948,9 +4948,6 @@ gl841_offset_calibration (Genesys_Device * dev)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
RIE (gl841_bulk_write_register
|
|
||||||
(dev, dev->calib_reg, GENESYS_GL841_MAX_REGS));
|
|
||||||
|
|
||||||
used_res = dev->current_setup.xres;
|
used_res = dev->current_setup.xres;
|
||||||
num_pixels = dev->current_setup.pixels;
|
num_pixels = dev->current_setup.pixels;
|
||||||
|
|
||||||
|
@ -4999,6 +4996,9 @@ gl841_offset_calibration (Genesys_Device * dev)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
||||||
|
RIE (gl841_bulk_write_register
|
||||||
|
(dev, dev->calib_reg, GENESYS_GL841_MAX_REGS));
|
||||||
|
|
||||||
for (j=0; j < channels; j++) {
|
for (j=0; j < channels; j++) {
|
||||||
off[j] = (offh[j]+offl[j])/2;
|
off[j] = (offh[j]+offl[j])/2;
|
||||||
dev->frontend.offset[j] = off[j];
|
dev->frontend.offset[j] = off[j];
|
||||||
|
|
Ładowanie…
Reference in New Issue