Loading backend/genesys.c +8 −4 Original line number Diff line number Diff line Loading @@ -2070,11 +2070,15 @@ genesys_white_shading_calibration (Genesys_Device * dev) dev->model->cmd_set->set_lamp_power (dev, dev->calib_reg, SANE_TRUE); dev->model->cmd_set->set_motor_power (dev->calib_reg, motor); /* if needed, go back before doin next scan, by using rewind, registers and * slopes table are kept intact from previous scan */ if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK && dev->model->cmd_set->rewind) /* if needed, go back before doing next scan */ if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK) { status = dev->model->cmd_set->rewind (dev); /* rewind keeps registers and slopes table intact from previous scan but is not available on all supported chipsets (or may cause scan artifacts, see #7) */ status = (dev->model->cmd_set->rewind ? dev->model->cmd_set->rewind (dev) : dev->model->cmd_set->slow_back_home (dev, SANE_TRUE)); } status = Loading backend/genesys_gl847.c +3 −1 Original line number Diff line number Diff line Loading @@ -1934,6 +1934,7 @@ gl847_end_scan (Genesys_Device * dev, Genesys_Register_Set * reg, * @param dev device to rewind * @returns SANE_STATUS_GOOD on success */ #if 0 /* disabled to fix #7 */ GENESYS_STATIC SANE_Status gl847_rewind(Genesys_Device * dev) { Loading Loading @@ -1965,6 +1966,7 @@ SANE_Status gl847_rewind(Genesys_Device * dev) DBGCOMPLETED; return SANE_STATUS_GOOD; } #endif /** Park head * Moves the slider to the home (top) position slowly Loading Loading @@ -3793,7 +3795,7 @@ static Genesys_Command_Set gl847_cmd_set = { gl847_led_calibration, gl847_slow_back_home, gl847_rewind, NULL, /* disable gl847_rewind, see #7 */ sanei_genesys_bulk_write_register, NULL, Loading Loading
backend/genesys.c +8 −4 Original line number Diff line number Diff line Loading @@ -2070,11 +2070,15 @@ genesys_white_shading_calibration (Genesys_Device * dev) dev->model->cmd_set->set_lamp_power (dev, dev->calib_reg, SANE_TRUE); dev->model->cmd_set->set_motor_power (dev->calib_reg, motor); /* if needed, go back before doin next scan, by using rewind, registers and * slopes table are kept intact from previous scan */ if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK && dev->model->cmd_set->rewind) /* if needed, go back before doing next scan */ if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK) { status = dev->model->cmd_set->rewind (dev); /* rewind keeps registers and slopes table intact from previous scan but is not available on all supported chipsets (or may cause scan artifacts, see #7) */ status = (dev->model->cmd_set->rewind ? dev->model->cmd_set->rewind (dev) : dev->model->cmd_set->slow_back_home (dev, SANE_TRUE)); } status = Loading
backend/genesys_gl847.c +3 −1 Original line number Diff line number Diff line Loading @@ -1934,6 +1934,7 @@ gl847_end_scan (Genesys_Device * dev, Genesys_Register_Set * reg, * @param dev device to rewind * @returns SANE_STATUS_GOOD on success */ #if 0 /* disabled to fix #7 */ GENESYS_STATIC SANE_Status gl847_rewind(Genesys_Device * dev) { Loading Loading @@ -1965,6 +1966,7 @@ SANE_Status gl847_rewind(Genesys_Device * dev) DBGCOMPLETED; return SANE_STATUS_GOOD; } #endif /** Park head * Moves the slider to the home (top) position slowly Loading Loading @@ -3793,7 +3795,7 @@ static Genesys_Command_Set gl847_cmd_set = { gl847_led_calibration, gl847_slow_back_home, gl847_rewind, NULL, /* disable gl847_rewind, see #7 */ sanei_genesys_bulk_write_register, NULL, Loading