genesys: Make sure calib_reg are available before writing into them

merge-requests/205/head
Povilas Kanapickas 2019-10-12 02:59:11 +03:00
rodzic 0e4a2d107a
commit 0781f3fd39
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -3916,6 +3916,9 @@ void CommandSetGl841::init(Genesys_Device* dev) const
// Set analog frontend
dev->cmd_set->set_fe(dev, sensor, AFE_INIT);
// FIXME: slow_back_home modifies dev->calib_reg and requires it to be filled
dev->calib_reg = dev->reg;
// Move home
dev->cmd_set->slow_back_home(dev, SANE_TRUE);