kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Raise exception when device structs are not found
rodzic
c2115543db
commit
4c18ef27a2
|
@ -276,8 +276,8 @@ sanei_genesys_init_structs (Genesys_Device * dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!motor_ok || !gpo_ok || !fe_ok) {
|
if (!motor_ok || !gpo_ok || !fe_ok) {
|
||||||
DBG(DBG_error0, "%s: bad description(s) for fe/gpo/motor=%d/%d/%d\n", __func__,
|
throw SaneException("bad description(s) for fe/gpo/motor=%d/%d/%d\n",
|
||||||
dev->model->ccd_type, dev->model->gpo_type, dev->model->motor_type);
|
dev->model->ccd_type, dev->model->gpo_type, dev->model->motor_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set up initial line distance shift */
|
/* set up initial line distance shift */
|
||||||
|
|
Ładowanie…
Reference in New Issue