From cfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 8 Oct 2015 12:32:49 +0200 Subject: Imported Upstream version 1.0.25 --- backend/hs2p-scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/hs2p-scsi.c') 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); -- cgit v1.2.3