kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Remove manual override of the first value in motor tables
rodzic
f605e7c229
commit
465077c6cb
|
@ -406,9 +406,6 @@ static void gl846_init_motor_regs_scan(Genesys_Device* dev,
|
|||
auto fast_table = sanei_genesys_slope_table(fast_dpi, scan_exposure_time, dev->motor.base_ydpi,
|
||||
factor, fast_motor_profile);
|
||||
|
||||
// manual override of high start value
|
||||
fast_table.table[0] = fast_table.table[1];
|
||||
|
||||
gl846_send_slope_table(dev, STOP_TABLE, fast_table.table, fast_table.scan_steps * factor);
|
||||
gl846_send_slope_table(dev, FAST_TABLE, fast_table.table, fast_table.scan_steps * factor);
|
||||
gl846_send_slope_table(dev, HOME_TABLE, fast_table.table, fast_table.scan_steps * factor);
|
||||
|
|
|
@ -436,9 +436,6 @@ static void gl847_init_motor_regs_scan(Genesys_Device* dev,
|
|||
auto fast_table = sanei_genesys_slope_table(fast_dpi, scan_exposure_time, dev->motor.base_ydpi,
|
||||
factor, fast_motor_profile);
|
||||
|
||||
// manual override of high start value
|
||||
fast_table.table[0] = fast_table.table[1];
|
||||
|
||||
gl847_send_slope_table(dev, STOP_TABLE, fast_table.table, fast_table.scan_steps * factor);
|
||||
gl847_send_slope_table(dev, FAST_TABLE, fast_table.table, fast_table.scan_steps * factor);
|
||||
gl847_send_slope_table(dev, HOME_TABLE, fast_table.table, fast_table.scan_steps * factor);
|
||||
|
|
|
@ -1791,8 +1791,7 @@ uint16_t target,current;
|
|||
i=0;
|
||||
sum=0;
|
||||
|
||||
// first step is always used unmodified
|
||||
current = motor_profile.table[0];
|
||||
current = motor_profile.table[0] >> step_shift;
|
||||
|
||||
// loop on profile copying and apply step type
|
||||
while (motor_profile.table[i] != 0 && current >= target) {
|
||||
|
|
Ładowanie…
Reference in New Issue