summaryrefslogtreecommitdiff
path: root/backend/hp5400_internal.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-05-24 21:03:56 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-05-24 21:03:56 +0200
commit58912f68c2489bcee787599837447e0d64dfd61a (patch)
treedda50aadde35fe152da1a8d50769987ace0f1496 /backend/hp5400_internal.c
parentcfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (diff)
New upstream version 1.0.27upstream/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,