kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Don't rely on motor profile fallbacks
rodzic
1942c5fd32
commit
2d0fc3ce55
|
@ -1767,8 +1767,7 @@ const Motor_Profile& sanei_genesys_get_motor_profile(const std::vector<Motor_Pro
|
||||||
/* default fallback */
|
/* default fallback */
|
||||||
if(idx<0)
|
if(idx<0)
|
||||||
{
|
{
|
||||||
DBG (DBG_warn,"%s: using default motor profile\n",__func__);
|
throw SaneException("Motor slope is not configured");
|
||||||
idx=0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return motors[idx];
|
return motors[idx];
|
||||||
|
|
|
@ -102,6 +102,13 @@ void genesys_init_motor_profile_tables_gl843()
|
||||||
profile.slope = MotorSlope::create_from_steps(8743, 300, 794);
|
profile.slope = MotorSlope::create_from_steps(8743, 300, 794);
|
||||||
gl843_motor_profiles->push_back(profile);
|
gl843_motor_profiles->push_back(profile);
|
||||||
|
|
||||||
|
profile = Motor_Profile(); // BUG: this is a fallback slope that was selected previously
|
||||||
|
profile.motor_id = MotorId::CANON_8600F;
|
||||||
|
profile.exposure = 0;
|
||||||
|
profile.step_type = StepType::HALF;
|
||||||
|
profile.slope = MotorSlope::create_from_steps(44444, 500, 489);
|
||||||
|
gl843_motor_profiles->push_back(profile);
|
||||||
|
|
||||||
profile = Motor_Profile();
|
profile = Motor_Profile();
|
||||||
profile.motor_id = MotorId::CANON_8600F;
|
profile.motor_id = MotorId::CANON_8600F;
|
||||||
profile.exposure = 0x59d8;
|
profile.exposure = 0x59d8;
|
||||||
|
|
Ładowanie…
Reference in New Issue