summaryrefslogtreecommitdiff
path: root/backend/hp5400_internal.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 11:25:39 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 11:25:39 +0200
commit1edb02101a9306fc711cd422ed507d18165b1691 (patch)
treebd2d48a139bfbe869f4f49359b63097931a45e7b /backend/hp5400_internal.c
parent2ca8a81bd0d99fe4d75c229d0e988d8ef710285f (diff)
move from support/1.0.27 to feature/1.0.27
Diffstat (limited to 'backend/hp5400_internal.c')
-rw-r--r--backend/hp5400_internal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/hp5400_internal.c b/backend/hp5400_internal.c
index d7e2325..65a434f 100644
--- a/backend/hp5400_internal.c
+++ b/backend/hp5400_internal.c
@@ -282,7 +282,9 @@ SetCalibration (int iHandle, int numPixels, unsigned int *low_vals[3],
cmd[3] = 0x00;
cmd[4] = 0x54;
cmd[5] = 0x02;
- cmd[6] = 0x80;
+ cmd[6] = -128; // 0x80; fixes compiler warning (for
+ // signed char implementations), see
+ // also comment above
cmd[7] = 0x00;
hp5400_bulk_command_write (iHandle, 0xE603, cmd, 8, calSize, calSize,