summaryrefslogtreecommitdiff
path: root/backend/hp5400_internal.c
diff options
context:
space:
mode:
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,