genesys: Raise exception when device structs are not found

merge-requests/173/head
Povilas Kanapickas 2019-09-12 23:48:15 +03:00
rodzic c2115543db
commit 4c18ef27a2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -276,8 +276,8 @@ sanei_genesys_init_structs (Genesys_Device * dev)
}
if (!motor_ok || !gpo_ok || !fe_ok) {
DBG(DBG_error0, "%s: bad description(s) for fe/gpo/motor=%d/%d/%d\n", __func__,
dev->model->ccd_type, dev->model->gpo_type, dev->model->motor_type);
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);
}
/* set up initial line distance shift */