handle 4850c model when setting initial registers values

merge-requests/1/head
Stphane Voltz 2012-02-21 22:17:37 +01:00
rodzic 5a59a1c7ab
commit 9b3ea47cf3
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -708,6 +708,7 @@ gl843_init_registers (Genesys_Device * dev)
/* G4050 values */ /* G4050 values */
if ((strcmp (dev->model->name, "hewlett-packard-scanjet-g4050") == 0) if ((strcmp (dev->model->name, "hewlett-packard-scanjet-g4050") == 0)
|| (strcmp (dev->model->name, "hewlett-packard-scanjet-4850c") == 0)
|| (strcmp (dev->model->name, "hewlett-packard-scanjet-g4010") == 0)) || (strcmp (dev->model->name, "hewlett-packard-scanjet-g4010") == 0))
{ {
SETREG (0x03, 0x1d); SETREG (0x03, 0x1d);
@ -3827,6 +3828,7 @@ gl843_init_gpio (Genesys_Device * dev)
RIE (sanei_genesys_write_register (dev, REG6C, dev->gpo.value[0])); RIE (sanei_genesys_write_register (dev, REG6C, dev->gpo.value[0]));
RIE (sanei_genesys_write_register (dev, REG6D, dev->gpo.value[1])); RIE (sanei_genesys_write_register (dev, REG6D, dev->gpo.value[1]));
if ((strcmp (dev->model->name, "hewlett-packard-scanjet-g4010") == 0) if ((strcmp (dev->model->name, "hewlett-packard-scanjet-g4010") == 0)
|| (strcmp (dev->model->name, "hewlett-packard-scanjet-4850c") == 0)
|| (strcmp (dev->model->name, "hewlett-packard-scanjet-g4050") == 0)) || (strcmp (dev->model->name, "hewlett-packard-scanjet-g4050") == 0))
{ {
i = 0; i = 0;