diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-09-27 08:20:20 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-09-27 08:20:20 +0200 |
commit | e94622c319e4307617b202f19d3ec05b21a9bb49 (patch) | |
tree | c5ddf44352b9bd47aeb3eb432ba79638079efe25 /backend/hs2p-scsi.c | |
parent | 6f2255c9648b175d51e2c8e5e9670557f9dc4ee1 (diff) |
merge to 1.0.25+git20150927
Diffstat (limited to 'backend/hs2p-scsi.c')
-rw-r--r-- | backend/hs2p-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/hs2p-scsi.c b/backend/hs2p-scsi.c index 82640e9..a14e6cb 100644 --- a/backend/hs2p-scsi.c +++ b/backend/hs2p-scsi.c @@ -1283,9 +1283,9 @@ hs2p_send_gamma (HS2P_Scanner * s) _lto3b (len, &out.cmd.len[0]); /* 19 bytes max */ out.gamma[0] = 0x08; /* Gamma ID for Download table */ out.gamma[1] = 0x08; /* The Number of gray scale (M) = 8 */ - for (i = 2; i < 2 + GAMMA_LENGTH; i++) + for (i = 0; i < GAMMA_LENGTH; i++) { - out.gamma[i] = s->gamma_table[i]; + out.gamma[i + 2] = s->gamma_table[i]; } status = sanei_scsi_cmd (s->fd, &out, sizeof (out), NULL, NULL); |