summaryrefslogtreecommitdiff
path: root/backend/hs2p-scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/hs2p-scsi.c')
-rw-r--r--backend/hs2p-scsi.c4
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);