kopia lustrzana https://gitlab.com/sane-project/backends
Merge branch 'genesys-motor-fixes' into 'master'
genesys: Motor table fixes See merge request sane-project/backends!322merge-requests/323/merge
commit
12e113ab52
|
@ -975,7 +975,7 @@ static void gl843_init_motor_regs_scan(Genesys_Device* dev,
|
|||
r->value |= scan_dummy; /* dummy lines */
|
||||
|
||||
reg->set8_mask(REG_0x67, static_cast<unsigned>(motor_profile.step_type) << REG_0x67S_STEPSEL, 0xc0);
|
||||
reg->set8_mask(REG_0x68, static_cast<unsigned>(motor_profile.step_type) << REG_0x68S_FSTPSEL, 0xc0);
|
||||
reg->set8_mask(REG_0x68, static_cast<unsigned>(fast_profile->step_type) << REG_0x68S_FSTPSEL, 0xc0);
|
||||
|
||||
// steps for STOP table
|
||||
reg->set8(REG_FMOVDEC, fast_table.steps_count / step_multiplier);
|
||||
|
|
|
@ -297,7 +297,7 @@ void genesys_init_motor_tables()
|
|||
|
||||
profile = MotorProfile();
|
||||
profile.slope = MotorSlope::create_from_steps(54612, 1500, 219);
|
||||
profile.step_type = StepType::HALF;
|
||||
profile.step_type = StepType::QUARTER;
|
||||
profile.motor_vref = 2;
|
||||
profile.resolutions = { 1200, 2400 };
|
||||
profile.scan_methods = { ScanMethod::FLATBED };
|
||||
|
@ -322,7 +322,7 @@ void genesys_init_motor_tables()
|
|||
|
||||
profile = MotorProfile();
|
||||
profile.slope = MotorSlope::create_from_steps(54612, 1500, 219);
|
||||
profile.step_type = StepType::HALF;
|
||||
profile.step_type = StepType::QUARTER;
|
||||
profile.motor_vref = 1;
|
||||
profile.resolutions = { 1200, 2400 };
|
||||
profile.scan_methods = { ScanMethod::TRANSPARENCY,
|
||||
|
@ -340,7 +340,7 @@ void genesys_init_motor_tables()
|
|||
|
||||
profile = MotorProfile();
|
||||
profile.slope = MotorSlope::create_from_steps(59240, 582, 1020);
|
||||
profile.step_type = StepType::HALF;
|
||||
profile.step_type = StepType::QUARTER;
|
||||
profile.motor_vref = 2;
|
||||
motor.fast_profiles.push_back(std::move(profile));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue