genesys: Improve head positioning during calibration on 8600F TA scans

merge-requests/213/head^2
Povilas Kanapickas 2020-04-13 07:38:05 +03:00
rodzic b788f2de8f
commit ea781b6b07
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -1489,6 +1489,12 @@ void CommandSetGl843::init_regs_for_shading(Genesys_Device* dev, const Genesys_S
// note: move_to_ta() function has already been called and the sensor is at the
// transparency adapter
move = static_cast<int>(dev->model->y_offset_calib_white_ta - dev->model->y_offset_sensor_to_ta);
if (dev->model->model_id == ModelId::CANON_8600F && resolution == 2400) {
move /= 2;
}
if (dev->model->model_id == ModelId::CANON_8600F && resolution == 4800) {
move /= 4;
}
flags |= ScanFlag::USE_XPA;
} else {
move = static_cast<int>(dev->model->y_offset_calib_white);