diff --git a/ChangeLog b/ChangeLog index 8d11f2105..c73d05491 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2008-11-20 Stéphane Voltz + * backend/rts8891.c: fixes 'commit scan value' for HP4400. + 2008-11-20 Stéphane Voltz * backend/rts8891.c: calibration fixes for HP4400 sensor type 3. diff --git a/backend/rts8891.c b/backend/rts8891.c index d4bf8da83..0bc482564 100644 --- a/backend/rts8891.c +++ b/backend/rts8891.c @@ -2757,6 +2757,7 @@ init_options (struct Rts8891_Session *session) session->opt[OPT_ADVANCED_GROUP].desc = ""; session->opt[OPT_ADVANCED_GROUP].type = SANE_TYPE_GROUP; session->opt[OPT_ADVANCED_GROUP].cap = SANE_CAP_ADVANCED; + session->opt[OPT_ADVANCED_GROUP].size = 0; session->opt[OPT_ADVANCED_GROUP].constraint_type = SANE_CONSTRAINT_NONE; /* lamp on */ @@ -6357,7 +6358,8 @@ send_calibration_data (struct Rts8891_Session *session) } /* signals color format from hardware */ - format = rts8891_data_format (dev->xdpi); + /* XXX STEF XXX format = rts8891_data_format (dev->xdpi); */ + format= dev->regs[0xd3]; status = sanei_rts88xx_write_reg (dev->devnum, 0xd3, &format); /* for some reason, we have to add 6 to the size for the first write */